How to import Alpine in custom script
I would like to extract an Alpine.data() component to a separate js file located in
The problem is the
Am I missing something here...?
resources/js/filament/app.js.The problem is the
import Alpine from 'alpinejs' I get a browser error. Presumably because it's not being compiled and just copied across to the public folder.Am I missing something here...?