Skip to content

Commit c353270

Browse files
JoschaMetzeniieani
authored andcommitted
feat(index): add 'exclude' option
merge pull request #1 from JoschaMetze/master
1 parent 89c3f30 commit c353270

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as webpack from 'webpack'
88
*
99
* See: https://webpack.github.io/docs/list-of-plugins.html#uglifyjsplugin
1010
*/
11-
export = function uglify({debug = false} = {}) {
11+
export = function uglify({debug = false, exclude = []} = {}) {
1212
return function uglify(this: WebpackConfig): WebpackConfig {
1313
const options = debug ? {
1414
beautify: true, //debug
@@ -32,6 +32,8 @@ export = function uglify({debug = false} = {}) {
3232
keep_fnames: true
3333
}, //prod
3434

35+
exclude: exclude,
36+
3537
compress: {
3638
screw_ie8: true,
3739
warnings: false

0 commit comments

Comments
 (0)