fixed webpack build error

This commit is contained in:
huixisheng 2017-03-10 21:57:50 +08:00
parent faee0fc8d2
commit 676cdf842e
3 changed files with 8 additions and 6 deletions

View file

@ -3,7 +3,7 @@ var webpack = require('webpack');
var merge = require('webpack-merge')
var webpackBaseConfig = require('./webpack.base.config.js');
process.env.NODE_ENV = 'production';
module.exports = merge(webpackBaseConfig, {
entry: {
@ -26,10 +26,9 @@ module.exports = merge(webpackBaseConfig, {
}
},
plugins: [
// @todo
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: '"production"'
}
'process.env.NODE_ENV': '"production"'
}),
new webpack.optimize.UglifyJsPlugin({
compress: {