Commit 345c915e by golton_gao

update: 代码优化

parent b16d82d6
Showing with 2 additions and 1 deletions
...@@ -32,7 +32,8 @@ var webpackConfig = merge(baseWebpackConfig, { ...@@ -32,7 +32,8 @@ var webpackConfig = merge(baseWebpackConfig, {
plugins: [ plugins: [
// http://vuejs.github.io/vue-loader/en/workflow/production.html // http://vuejs.github.io/vue-loader/en/workflow/production.html
new webpack.DefinePlugin({ new webpack.DefinePlugin({
'process.env': env 'process.env': env,
'process.env.PACK_ENV': JSON.stringify(process.env.PACK_ENV)
}), }),
new webpack.optimize.UglifyJsPlugin({ new webpack.optimize.UglifyJsPlugin({
compress: { compress: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment