gaiety / Phoenix (Elixir) + LitElement + TailwindCSS
0 Lajky
0 Forky
1 Soubory
Naposledy aktivní 6 months ago
Inline import the compiled TailwindCSS and Phoenix LiveView ViewHook and make it available to components
| 1 | import {LitElement, unsafeCSS} from 'lit' |
| 2 | import type {ViewHook} from 'phoenix_live_view' |
| 3 | import styles from '../../../priv/static/assets/app.css?inline' |
| 4 | |
| 5 | declare global { |
| 6 | interface HTMLElement { |
| 7 | LitLiveHook?: ViewHook |
| 8 | } |
| 9 | } |
Novější
Starší