sohail49
2 months ago
388
3
Mix

Js File get Complie But No working

Posted 2 months ago by sohail49

Hi I am using laravel mix to compile my sass and js the Scss work fine but js get to compile and do not work here is my webpack file code

let mix = require('laravel-mix');

mix.setPublicPath('public');

mix.sass('resources/assets/sass/app.scss', 'public/css/main.css');

mix.js('resources/assets/js/app.js', 'public/js/main.js');

and here is my app.js

window.$ = window.JQuery = require('jquery');

window.Vue = require = ('vue');

require('foundation-sites/dist/js/foundation.min');

require('slick-carousel/slick/slick.min');

require('../js/init');

and the only scenario I work is if I remove the Vue js Line Of Code

Please sign in or create an account to participate in this conversation.