Replies: 3 comments 3 replies
-
|
@btihen Hmm, I'll have to dig into this…seems like it "should just work" but maybe there's an extra hoop to jump through. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Cool - I'll be glad to test or explore any ideas you'd like. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Silly question, did you make sure to add "defer" to the script tag in head? I'll see if I can repro this tomorrow |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have installed AlpineJS using the script tag in the header, but I would feel more comfortable if I could figure out how to install it as a module here is what I tried:
bridgetown new apline_tail -t erb -c purgecss,tailwindcss cd apline_tailfrontend/javascript/index.jslook like:As I figured this file is already in the bundle pipleline so should work.
So I added a very simple alpinejs / html to the bottom of
src/_components/shared/navbar.erbNothing happens.
But if I add:
<script src="//unpkg.com/alpinejs" defer></script>tosrc/_partials/_head.erbeverything is fine.So I figured I needed to do something with the
esbuild.config.jsfile - but I am not sure what.Can someone point me in the correct direction?
Also I would be glad (with a little guidance) to turn this into a config option once it is working.
Beta Was this translation helpful? Give feedback.
All reactions