Skip to content

Commit 10e1f7d

Browse files
committed
config(EJ2-000): v18.3.35 released
1 parent cb95be6 commit 10e1f7d

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

webpack.config.js

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,7 @@
11
var webpack = require('webpack');
22

33
module.exports = {
4-
mode : (/hotfix\/|release\/|master/).test(process.env.BRANCH_NAME) ? 'production' : 'development',
5-
entry: { 'src/common/index.js': './src/common/index.js' },
6-
optimization: {
7-
splitChunks: {
8-
cacheGroups: {
9-
vendor: {
10-
test: /node_modules/,
11-
chunks: 'initial',
12-
name: 'common',
13-
priority: 10,
14-
enforce: true
15-
}
16-
}
17-
},
18-
runtimeChunk: false
19-
},
4+
entry: "./src/common/index.js",
205
output: {
216
filename: "bundle.js",
227
path: __dirname + "/dist"
@@ -49,6 +34,16 @@ module.exports = {
4934
'process.env': {
5035
NODE_ENV: JSON.stringify('production')
5136
}
52-
})
37+
}),
38+
new webpack.optimize.UglifyJsPlugin({
39+
beautify: false,
40+
output: {
41+
comments: false
42+
},
43+
compress: {
44+
warnings: false,
45+
unused: true
46+
}
47+
}),
5348
]
54-
}
49+
}

0 commit comments

Comments
 (0)