Responsive
Hi there, great theme love it!
I am looking to use alpine.js with your theme. What would be the best way to import this. I have installed alpine.js with npm and would like to have it compile with the reset of the assets on npm run prod
.
Any help would be great.
Thanks
Cy
The Bakerdev
Hi Cy,
Glad you liked the theme. You can simply add alpine.js' import statement inside the app.js on the assets/src/js folder. Here's an example:
import navigation from './navigation';
import scroll from './scroll';
import carousel from './carousel';
import validation from './validation';
import 'alpinejs';
(function() {
const scripts = [
navigation,
scroll,
carousel,
validation
];
scripts.forEach(script => script.init());
})();
Hope this helps.
Regards
1-3 of 3