node -v): 6.11.2npm -v): 3.10.10*sorry for the bad english
.js() is stucking at '95% emitting' if public path is one level before the Laravel root
I need a setup where compiled css and js folder are located one level before the Laravel root.
The folder root is 'C:\wwwrgb-project', and the struct is something like this:
My /rgb-project/laravel/webpack.mix.js is pretty much vanilla, except for the .setPublicPath
let mix = require('laravel-mix');
mix.setPublicPath('../')
.sass('resources/assets/sass/app.scss', 'css')
.js('resources/assets/js/app.js', 'js');
This is the 'mix-manifest.json' generated at '/rgb-project' when it stuck at 95%:
{
"/C:/www/rgb-project/js/app.js": "/C:/www/rgb-project/js/app.js",
"/css/app.css": "/css/app.css"
}
I am having the same issue so i reverted to using the default structure of the public folder. Then just switching the structure for when I push to production. Would be a useful fix though :)
@TopFuel That fixed it. Thanks.
@TopFuel Thanks, that works, just a little observation:
path.normalize('../') Do not work
path.normalize('../.') Is working correctly
Most helpful comment
Try this fix, it's working for me.