Update gulp-uglify to the latest version 🚀 #21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Version 3.0.0 of gulp-uglify just got published.
The version 3.0.0 is not covered by your current version range.
Without accepting this pull request your project will work just like it did before. There might be a bunch of new features, fixes and perf improvements that the maintainers worked on for you though.
I recommend you look into these changes and try to get onto the latest version of gulp-uglify.
Given that you have a decent test suite, a passing build is a strong indicator that you can take advantage of these changes by merging the proposed change into your project. Otherwise this branch is a great starting point for you to work on the update.
Release Notes
v3.0.0We're now targeting UglifyJS3, if you need to continue to use UglifyJS2, you should stay on v2.1.2.
Breaking Changes
The custom option "preserveComments" was removed.
As a replacement, set the
options.output.commentsoption directly, UglifyJS3 understands the following options:While the "some" option works for many cases, it doesn't fully match the behavior of the "license" option. Fortunately, you can pass the exported function from
uglify-save-licenseas the comment option.The "minifier" API, which you could use to provide your own UglifyJS instance has been removed. It has been replaced with the "composer" API.
Commits
The new version differs by 6 commits.
76b5b3afix(package): update files array5d4c4c6chore(all): refactor unit testsf2b779bfeat(composer): implement new API for composing depsdbbba30fix(minify): log warnings to gulplog4cc8751feat(uglify): add support for UglifyJS3ad73ab8chore(pkg): update dependencies, run lintSee the full diff
Not sure how things should work exactly?
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot 🌴