From ee3341c6b3d1583700c99a6921615040caee04a7 Mon Sep 17 00:00:00 2001 From: Josh Atkins Date: Sat, 3 Apr 2021 15:58:17 +0100 Subject: [PATCH] Fixed publicPath for dev server --- webpack.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index f9e564f..d2709fa 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -51,7 +51,8 @@ module.exports = env => { // must be an absolute path (use the Node.js path module) path: outputPath, // the url to the output directory resolved relative to the HTML page - publicPath: 'js', + // should include at least trailing slash + publicPath: '/js/', // the filename template for entry chunks filename: '[name].bundle.js', chunkFilename: '[name].bundle.js',