Add missing modes.

This commit is contained in:
Alexis Lahouze 2018-06-09 23:54:11 +02:00
parent d6f895c535
commit d813bf4c89
2 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,8 @@ const helpers = require('./helpers');
module.exports = webpackMerge(commonConfig, { module.exports = webpackMerge(commonConfig, {
devtool: 'cheap-module-eval-source-map', devtool: 'cheap-module-eval-source-map',
mode: 'development',
output: { output: {
path: helpers.root('dist'), path: helpers.root('dist'),
publicPath: '/', publicPath: '/',

View File

@ -10,6 +10,8 @@ const ENV = process.env.NODE_ENV = process.env.ENV = 'production';
module.exports = webpackMerge(commonConfig, { module.exports = webpackMerge(commonConfig, {
devtool: 'source-map', devtool: 'source-map',
mode: 'production',
output: { output: {
path: helpers.root('dist'), path: helpers.root('dist'),
publicPath: '/', publicPath: '/',