Skip to content

Commit d4d728f

Browse files
committed
reset webpack.config.js
1 parent bc04dd9 commit d4d728f

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

webpack.config.js

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
const path = require('path');
2-
const webpack = require('webpack')
2+
33

44
module.exports = function (env) {
55
env = env || {};
6-
let plugins = [];
6+
77

88
/**
99
* If -p flag is set, minify the files
@@ -12,16 +12,6 @@ module.exports = function (env) {
1212
const src = !env.p;
1313
const filenamePostfix = src ? '.src' : '';
1414

15-
if (!src) {
16-
plugins.push(new webpack.optimize.UglifyJsPlugin({
17-
compress: {
18-
drop_console: true,
19-
unsafe: true
20-
}
21-
})
22-
)
23-
}
24-
2515
/**
2616
* If -b flag is set, build bundles, and not exclude highcharts from the build
2717
* @type {boolean}
@@ -94,7 +84,6 @@ module.exports = function (env) {
9484
}
9585
]
9686
},
97-
plugins: plugins,
9887
externals: externals,
9988
resolve: {
10089
modules: [

0 commit comments

Comments
 (0)