We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89c3f30 commit c353270Copy full SHA for c353270
src/index.ts
@@ -8,7 +8,7 @@ import * as webpack from 'webpack'
8
*
9
* See: https://webpack.github.io/docs/list-of-plugins.html#uglifyjsplugin
10
*/
11
-export = function uglify({debug = false} = {}) {
+export = function uglify({debug = false, exclude = []} = {}) {
12
return function uglify(this: WebpackConfig): WebpackConfig {
13
const options = debug ? {
14
beautify: true, //debug
@@ -32,6 +32,8 @@ export = function uglify({debug = false} = {}) {
32
keep_fnames: true
33
}, //prod
34
35
+ exclude: exclude,
36
+
37
compress: {
38
screw_ie8: true,
39
warnings: false
0 commit comments