diff --git a/config/webpack.dev.js b/config/webpack.dev.js index 584c41e..e337c22 100644 --- a/config/webpack.dev.js +++ b/config/webpack.dev.js @@ -8,6 +8,8 @@ const helpers = require('./helpers'); module.exports = webpackMerge(commonConfig, { devtool: 'cheap-module-eval-source-map', + mode: 'development', + output: { path: helpers.root('dist'), publicPath: '/', diff --git a/config/webpack.prod.js b/config/webpack.prod.js index c13f28d..b874637 100644 --- a/config/webpack.prod.js +++ b/config/webpack.prod.js @@ -10,6 +10,8 @@ const ENV = process.env.NODE_ENV = process.env.ENV = 'production'; module.exports = webpackMerge(commonConfig, { devtool: 'source-map', + mode: 'production', + output: { path: helpers.root('dist'), publicPath: '/',