Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Replace Uglify with Terser (or provide as an option) #497

Closed
dwkns opened this issue Oct 3, 2018 · 6 comments
Closed

Comments

@dwkns
Copy link

dwkns commented Oct 3, 2018

Feature request

Replace Uglify with Terser

Why
Uglify-es is no longer maintained. Uglifuy-js doesn't support ES6+ (its ES2015 only).

ES6+ is increasingly being supported in browsers and certainly increasingly used during website/web app development. It should have a first class mangler/compressor rather than having to rely on babel to work.

Terser retains API and CLI compatibility with uglify-es and uglify-js@3.

It should also allow minification before bundling which may lead to build time improvements.

@dwkns dwkns changed the title Replace Uglify with Terser (or provide as an option) [Feature Request] Replace Uglify with Terser (or provide as an option) Oct 3, 2018
@bdkjones
Copy link
Owner

bdkjones commented Oct 3, 2018 via email

@seanCodes
Copy link

According to the current Uglify maintainer:

uglify-es is no longer maintained.

And in fact, it looks like the uglify-es branch of Uglify JS has actually been deleted.

I think Terser has emerged as the clear successor and has proved itself as more than just a fork at this point. It’s also very actively maintained. Since it has the same API/CLI as Uglify, it should be a fairly invisible transition for both the app and users. 🤞

Supporting mangling/compression of ES6 code is a key part of bringing CodeKit up-to-date with the ES6 world, so it would be great to see it implemented.

@bdkjones
Copy link
Owner

bdkjones commented Dec 11, 2018 via email

@dwkns
Copy link
Author

dwkns commented Dec 12, 2018

Terser is now the default minification for Webpack.
webpack/webpack#8392

@bdkjones
Copy link
Owner

Done.

CodeKit 3.8 has Terser built-in. It replaces UglifyJS. All applicable options that carry over from Uglify are automatically migrated for every project. New options are shown in the UI. Additionally, I'm forcing the comments option to OFF in 3.8 because the meaning of that option got inverted in Uglify 3 and everyone has no idea why comments are showing up in minified files now and I'm tired of writing the same email reply.

@bdkjones
Copy link
Owner

Should be out in a few days, once I get the docs done. If you'd like you can try it now at https://codekitapp.com/binaries/beta/bundle7.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants