What is the recommended way to add Alpinejs components when using @fluxScripts? #672
-
When using flux with @fluxStyles and @fluxScripts, is it possible to add custom Alpine.js components? Specifically, in my app.js, how do I access the Alpine instance created by flux, so I can do something like Before flux, I was using the method described in the LiveWire docs at https://livewire.laravel.com/docs/alpine#manually-bundling-alpine-in-your-javascript-build. How do I manage this when using Flux and should there be something in the docs to cover this, as there is in Livewire? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@rikh42 I still use the method described in https://livewire.laravel.com/docs/alpine#manually-bundling-alpine-in-your-javascript-build with Flux and everything works as expected (re adding custom Alpine.js components, etc.). |
Beta Was this translation helpful? Give feedback.
@rikh42 I still use the method described in https://livewire.laravel.com/docs/alpine#manually-bundling-alpine-in-your-javascript-build with Flux and everything works as expected (re adding custom Alpine.js components, etc.).