Skip to content

Upgrading gulp-uglify 1 to 2

Breaking1.5.4 → 2.1.2Breaking2New1Changed2Fixed4

BreakingUpgrade verdict

2 breaking changes.

  • Code that inspected error messages or error types may need updating, since errors now come as GulpUglifyError with the original UglifyJS message kept intact.
  • You must use UglifyJS 2.7.0 or newer with this version of the plugin.
2 items need code or config changes

Adds gulplog ^1.0.0, has-gulplog ^0.1.0, lodash ^4.13.1, make-error-cause ^1.1.1.

Drops deap, fancy-log, gulp-util, isobject.

Installs 36 packages in all (was 82).

Breaking2
Emitted errors are a new type; original UglifyJS messages are preserved and the constructor is exported as GulpUglifyError.
GulpUglifyError
Now requires UglifyJS 2.7.0 or greater to use the input object support.