Skip to content

Commit 677ba9a

Browse files
committed
updated webpack to remove bloat
1 parent ee7b920 commit 677ba9a

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ flycheck_*.el
1111

1212
node_modules/
1313
coverage/
14-
test/unit/coverage
14+
test/unit/coverage
15+
16+
shrinkwrap.yaml

webpack.build.config.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,18 @@ module.exports = [
2525
libraryTarget: "umd"
2626
},
2727

28-
plugins: [
29-
new webpack.optimize.DedupePlugin(),
28+
plugins: [
3029
new webpack.DefinePlugin({
3130
'process.env' : {
3231
NODE_ENV : JSON.stringify('production')
3332
}
3433
}),
34+
new webpack.optimize.UglifyJsPlugin({
35+
compress: {
36+
warnings: false
37+
}
38+
}),
39+
new webpack.optimize.DedupePlugin(),
3540
new webpack.BannerPlugin(banner, {
3641
raw: true
3742
}),
@@ -81,7 +86,7 @@ module.exports = [
8186
],
8287

8388
module: {
84-
loaders: loaders
89+
loaders: loaders
8590
},
8691

8792
resolve: {

0 commit comments

Comments
 (0)