6 months ago

Changing where the app.js goes after laravel mix

Posted 6 months ago by Shiva

I'm trying to change where the app.js goes after I save a js file and run npm run watch the problem is everytime I save a public folder appears and I would like to stop that. I thought that by changing this

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


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

would work, but I'm still getting the public folder

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