alexnoz/webpack-pug-scss-boilerplate

Wrong assets path after production build

Opened this issue · 2 comments

After running npm run build I've got an error: Failed to load resource: net::ERR_FILE_NOT_FOUND for all CSS and JS files

Sorry, I cannot reproduce this. The project uses yarn instead of npm, so using yarn may fix the issue. If using yarn didn't help, please specify the changes you made to webpack's config and/or the project's structure.

Changing const publicPath = '/' to const publicPath = '' in webpack.parts.js fixed this for me.

I don't think the use of yarn vs npm really matters anymore.