gdborton / webpack-parallel-uglify-plugin

A faster uglifyjs plugin.
466 stars 34 forks source link

Add ability to use uglify-es (ES2015 support) as a minifier #22

Closed stevewillard closed 7 years ago

stevewillard commented 7 years ago

Recently support for ES2015 was release with Uglify: https://www.npmjs.com/package/uglify-es

It might be a fun idea to try to switch on this parser with a flag in the plugin.

gdborton commented 7 years ago

This is coming soonish.

scott-thrillist commented 7 years ago

+1 doing some ES6 build testing as our IE11 marketshare is inching closer to >1% and this great plugin is the last piece blocking me :)

gdborton commented 7 years ago

@stevewillard @scott-thrillist I've updated the plugin to include support for uglify-es, you can specify that you want to use uglify-es by providing uglifyES: { ...uglifyOptions }. The newest release (1.0.0) also updates uglifyJS to use uglify-js@3, so be aware of that if you have any options that differ in 2 vs 3.