diff --git a/config/webpack.config.prod.js b/config/webpack.config.prod.js index 10ce8650..4e785a43 100644 --- a/config/webpack.config.prod.js +++ b/config/webpack.config.prod.js @@ -18,6 +18,9 @@ module.exports = { // The build folder. path: paths.dist, + // Append leading slash when production assets are referenced in the html. + publicPath: '/', + // Generated JS files. filename: 'js/[name].[chunkhash:8].js' },