JJ
Thanks for putting this together. I'm stumped on the alpine stuff. I've npm installed it and added the setup code to "assets/js/japp.js" (via a statement like import "alpinejs" and the rest of the config snipped from the article), but the only way I can get Alpine to work is if I also load it directly into the layout html via < script defer src = "https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js" > </ script > then it works. If I comment that script tag out, then no go. Any tips for what I might be missing? Thanks!
CommentArticleOct 16, 2021Phoenix 1.6.0 LiveView + esbuild + Tailwind JIT + AlpineJS - A brief tutorial.