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

Move uglify-js's config back to CLI. #24147

Merged
merged 1 commit into from
Sep 28, 2017
Merged

Conversation

XhmikosR
Copy link
Member

We need to pass different options and this seems cleaner at this point.

In order for docs.min.js to keeps all comments, we don't pass compress.

This basically reverts #22990.

Fixes #24139

@Johann-S
Copy link
Member

I had an issue that's why I moved our uglifyjs config to a separate file 😟

@XhmikosR
Copy link
Member Author

What issue exactly? I don't see anything wrong here...

@Johann-S
Copy link
Member

No but when I did the move to a config file it was because we had an issue but I tried now and it's seems fine 👍

@Johann-S
Copy link
Member

can you keep typeof: false please ?

package.json Outdated
"js-minify-bundle": "uglifyjs --config-file build/uglifyjs.config.json --output dist/js/bootstrap.bundle.min.js dist/js/bootstrap.bundle.js",
"js-minify-docs": "uglifyjs --config-file build/uglifyjs.config.json --output assets/js/docs.min.js assets/js/vendor/anchor.min.js assets/js/vendor/clipboard.min.js assets/js/vendor/holder.min.js assets/js/src/application.js assets/js/src/pwa.js",
"js-minify-standalone": "uglifyjs --compress --mangle --comments \"/^!/\" --output dist/js/bootstrap.min.js dist/js/bootstrap.js",
"js-minify-bundle": "uglifyjs --compress --mangle --comments \"/^!/\" --output dist/js/bootstrap.bundle.min.js dist/js/bootstrap.bundle.js",
Copy link
Member

@Johann-S Johann-S Sep 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be --comprend typeofs=false --mangle --comments \"/^!/\"
related to #23770

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do in a few min.

We need to pass different options and this seems cleaner at this point.

In order for docs.min.js to keeps all comments, we don't pass `compress`.
@XhmikosR XhmikosR merged commit fe06814 into v4-dev Sep 28, 2017
@XhmikosR XhmikosR deleted the v4-dev-xmr-uglify-config branch September 28, 2017 12:35
@mdo mdo mentioned this pull request Sep 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants