-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add reasonable uglify-js options. #7077
Conversation
df9aa8b
to
9873516
Compare
@rwjblue should we not deep merge? |
@krisselden - We do merge deeply via |
@rwjblue |
This targets beta at the moment. I'm fine with release also, can update the PR target in the morning. |
seems likely good to get this out asap IMHO. |
These options should always have been specified, and are good defaults.
9873516
to
fe81073
Compare
retargeted and rebased |
Out of curiosity, how does this affect performance? |
@cibernox what performance are you curious about build/runtime? |
Precisely. This is tagged as performance but it's not clear to me to which one it refers. I assume it refers to some sort IIFE optimization, and I'm curious to read more about that. |
@cibernox TL;DR uglify stripped the leading |
refs TryGhost/Ghost#8815, TryGhost/Ghost#8840, TryGhost/Ghost#8842, TryGhost/Ghost#8849 - `ember-cli` 2.14 introduced some [new defaults for uglify-js](ember-cli/ember-cli#7077) that resulted in CloudFlare's Auto Minify feature mangling the JS files and causing syntax errors - revert the `semicolons: false` option to restore compatibility **Note:** This does _not_ mean it's recommended to use CloudFlare's Auto Minify feature. It's still recommended that all CloudFlare's performance settings are [disabled for /ghost* URLs](https://docs.ghost.org/docs/troubleshooting#section-ghost-admin-not-loading)
refs TryGhost/Ghost#8815, TryGhost/Ghost#8840, TryGhost/Ghost#8842, TryGhost/Ghost#8849 - `ember-cli` 2.14 introduced some [new defaults for uglify-js](ember-cli/ember-cli#7077) that resulted in CloudFlare's Auto Minify feature mangling the JS files and causing syntax errors - revert the `semicolons: false` option to restore compatibility **Note:** This does _not_ mean it's recommended to use CloudFlare's Auto Minify feature. It's still recommended that all CloudFlare's performance settings are [disabled for /ghost* URLs](https://docs.ghost.org/docs/troubleshooting#section-ghost-admin-not-loading)
These options should always have been specified, and are good defaults.
I could have sworn that these defaults were already present, but I could not find them in this repo, in ember-cli-uglify repo, or the broccoli-uglify-sourcemap repo...