build(webpack): correct define-plugin usage

This commit is contained in:
EnixCoda 2018-01-17 12:04:52 +08:00
parent f876c72368
commit 704b66590d

View file

@ -31,7 +31,7 @@ if (process.env.NODE_ENV === 'production') {
plugins.push(
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: 'production',
NODE_ENV: JSON.stringify('production'),
},
})
)