Skip to content

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

Merged
XhmikosR merged 1 commit intov4-devfrom
v4-dev-xmr-uglify-config
Sep 28, 2017
Merged

Move uglify-js's config back to CLI.#24147
XhmikosR merged 1 commit intov4-devfrom
v4-dev-xmr-uglify-config

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
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 force-pushed the v4-dev-xmr-uglify-config branch from 67a77b6 to b913755 Compare September 27, 2017 15:21
@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