Closed pensierinmusica closed 7 years ago
Hi @pensierinmusica
Yeah, looks like I have not updated the dependencies for far too long. I am keen to upgrade, but would want to better understand backward compatibility situation. Like will it run on pre-harmony versions of node? Also uglify-es
looks much less mature than uglify-js
. Shall we make it optional maybe?
@shkuznetsov mmm if I understand correctly they're just two different versions of the same software:
uglify-js
- https://github.com/mishoo/UglifyJS2uglify-es
- https://github.com/mishoo/UglifyJS2/tree/harmonyThe package.json
file of uglify-es
says it supports Node >=0.8.0
, so if that is correct it should work on pre-harmony.
When you run the tests does it give you any issue?
Hope this helps!
Oh you're so right, I've sooooo lost the thread, sorry. Yes please if you've got PR — please feel free to drop in. Otherwise I'll have a look in a few days.
Fixed, bumped major version (v1.0.0) due to underlying plugins API changes
Awesome!
gulp-minify-inline
(v0.2.1) throws an error when using ES6 template literals.This works fine:
This throws an error:
It looks like the error comes from
uglify-js
, which doesn't seem to support ES6 syntax. Shall we switch touglify-es
instead? Do you want me to send a PR?Cheers!