Closed johannes-z closed 7 years ago
How about an option that allows you to include or exclude files based on their name similar to the UglifyJsPlugin?
UglifyJsPlugin
F.e. I'm building something like this:
var entry = { // Polyfill polyfill: ['babel-polyfill', 'whatwg-fetch'], // Source source: ['./src/main.js'] // Other }
I always want the polyfill file to be minified, and don't need the unminified version.
For the UglifyJsPlugin it would look like this:
new webpack.optimize.UglifyJsPlugin({ include: /polyfill.*/, // ... )}
It's actually supported, i forget to add test cases and documentation. Thanks for reminding. Doc just updated.
Please check the readme
How about an option that allows you to include or exclude files based on their name similar to the
UglifyJsPlugin
?F.e. I'm building something like this:
I always want the polyfill file to be minified, and don't need the unminified version.
For the
UglifyJsPlugin
it would look like this: