diff --git a/webpack.config.dev.js b/webpack.config.dev.js index 9a2ddc329..46e1cd5ed 100644 --- a/webpack.config.dev.js +++ b/webpack.config.dev.js @@ -20,7 +20,7 @@ module.exports = merge(common, { plugins: [ new webpack.DefinePlugin({ 'process.env': { - NODE_ENV: 'development' + NODE_ENV: '"development"' } }), new webpack.LoaderOptionsPlugin({ diff --git a/webpack.config.prod.js b/webpack.config.prod.js index 68a929d0d..693fbe41f 100644 --- a/webpack.config.prod.js +++ b/webpack.config.prod.js @@ -17,7 +17,7 @@ module.exports = merge(common, { plugins: [ new webpack.DefinePlugin({ 'process.env': { - NODE_ENV: 'production' + NODE_ENV: '"production"' } }), new webpack.LoaderOptionsPlugin({