-
Notifications
You must be signed in to change notification settings - Fork 77
/
webpack.config.js
37 lines (35 loc) · 1.02 KB
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
'use strict';
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
module.exports = {
output: {
library: 'esb',
libraryTarget: 'umd'
},
optimization: {
minimizer: [
new UglifyJSPlugin({
sourceMap: false,
uglifyOptions: {
beautify: false,
mangle: {
toplevel: true,
keep_fnames: false
},
compressor: {
warnings: false,
conditionals: true,
unused: true,
comparisons: true,
sequences: true,
dead_code: true,
evaluate: true,
if_return: true,
join_vars: true,
negate_iife: false
},
comments: false
}
})
]
}
};