Skip to content

Commit 6b85d08

Browse files
authored
Merge pull request #7 from eliperelman/exclude-babel-minify
Exclude babel minify from plugins
2 parents c220312 + 1c86833 commit 6b85d08

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/configure.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import cssLoader from './lib/css-loader';
88
export default function configure(options) {
99
let cwd = process.cwd(),
1010
res = file => path.resolve(cwd, file);
11-
11+
1212
let files = options.files.filter(Boolean);
1313
if (!files.length) files = ['**/{*.test.js,*_test.js}'];
1414

@@ -171,7 +171,7 @@ export default function configure(options) {
171171
}),
172172
plugins: (webpackConfig.plugins || []).filter( plugin => {
173173
let name = plugin && plugin.constructor.name;
174-
return /^\s*(UglifyJSPlugin|HTMLWebpackPlugin|ExtractTextPlugin)\s*$/gi.test(name);
174+
return /^\s*(UglifyJS|HTML|ExtractText|BabelMinify)(.*Webpack)?Plugin\s*$/gi.test(name);
175175
})
176176
},
177177

@@ -189,4 +189,4 @@ export default function configure(options) {
189189
}
190190
}
191191
};
192-
}
192+
}

0 commit comments

Comments
 (0)