Install HTMX extensions
This commit is contained in:
parent
ae8d360c4e
commit
323c8d5081
2 changed files with 6 additions and 3 deletions
src
|
@ -5,9 +5,12 @@ import anchor from '@alpinejs/anchor'
|
||||||
import intersect from '@alpinejs/intersect'
|
import intersect from '@alpinejs/intersect'
|
||||||
import persist from '@alpinejs/persist'
|
import persist from '@alpinejs/persist'
|
||||||
|
|
||||||
window.htmx = HTMX;
|
window.htmx = HTMX
|
||||||
window.Alpine = Alpine
|
import("htmx.org/dist/ext/debug.js")
|
||||||
|
import("htmx.org/dist/ext/alpine-morph.js")
|
||||||
|
import("htmx.org/dist/ext/head-support.js")
|
||||||
|
|
||||||
|
window.Alpine = Alpine
|
||||||
Alpine.plugin(anchor)
|
Alpine.plugin(anchor)
|
||||||
Alpine.plugin(intersect)
|
Alpine.plugin(intersect)
|
||||||
Alpine.plugin(persist)
|
Alpine.plugin(persist)
|
||||||
|
|
|
@ -11,6 +11,6 @@
|
||||||
(title "skyizwhite.dev")
|
(title "skyizwhite.dev")
|
||||||
(script :type "module" :src "http://localhost:5173/@vite/client")
|
(script :type "module" :src "http://localhost:5173/@vite/client")
|
||||||
(script :type "module" :src "http://localhost:5173/src/assets/main.js"))
|
(script :type "module" :src "http://localhost:5173/src/assets/main.js"))
|
||||||
(body :class "h-[100svh] w-screen"
|
(body :hx-ext "debug, alpine-morph, head-support" :class "h-[100svh] w-screen"
|
||||||
(main :class "h-full"
|
(main :class "h-full"
|
||||||
pi:children)))))
|
pi:children)))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue