diff --git a/webpack.config.js b/webpack.config.js index ac7c4442..9307b1ae 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -29,8 +29,9 @@ module.exports = { ], output: { - path: path.join(__dirname, '/dist/'), - filename: '[name].js' + publicPath: '/', + path: path.join(__dirname, '/dist'), + filename: '[name].js', }, plugins: [ diff --git a/webpack.production.config.js b/webpack.production.config.js index ec3096e1..5956839f 100644 --- a/webpack.production.config.js +++ b/webpack.production.config.js @@ -32,7 +32,8 @@ module.exports = { }, output: { - path: path.join(__dirname, '/dist/'), + publicPath: '/', + path: path.join(__dirname, '/dist'), filename: '[name]-[chunkhash].js', chunkFilename: '[name]-[chunkhash].js' },