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

build - replace gulp-uglify-es with gulp-terser-js #7139

Merged
merged 2 commits into from
Sep 10, 2019
Merged

Conversation

kumavis
Copy link
Member

@kumavis kumavis commented Sep 10, 2019

small change to the build script. terser is a maintained continuation of uglify-es. This has negligible impact on the build.

side note: for sourcemap-validator replacing terser did not solve the issue I was having with uglify-es

@metamaskbot
Copy link
Collaborator

Builds ready [72fd15e]: chrome, firefox, edge, opera

@kumavis
Copy link
Member Author

kumavis commented Sep 10, 2019

tests passed with a retry for e2e-chrome

@kumavis
Copy link
Member Author

kumavis commented Sep 10, 2019

actually they both already use terser under the hood, but gulp-terser-js is ahead by a major version

package.json Outdated Show resolved Hide resolved
@kumavis kumavis requested a review from Gudahtt September 10, 2019 17:04
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

Looks good!

I'm surprised there isn't a more popular library - neither this nor the one it's replacing seem popular. I wonder what other projects are using for this kinda thing.

Ah well, as long as it works. It's just a gulp wrapper around terser so I guess it can't be that complicated.

@metamaskbot
Copy link
Collaborator

Builds ready [86e69b6]: chrome, firefox, edge, opera

@kumavis
Copy link
Member Author

kumavis commented Sep 10, 2019

tried out gulp-babel-minify but it crashes out of memory https://github.com/babel/minify/tree/master/packages/gulp-babel-minify

@kumavis kumavis merged commit f402d09 into develop Sep 10, 2019
@kumavis kumavis deleted the build-terser branch September 10, 2019 17:34
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

Successfully merging this pull request may close these issues.

3 participants