voorhoede / fastatic

Speed up your static site with one command
MIT License
21 stars 3 forks source link

gulp-uglify (jsmin) fails when ES2015 features are found #69

Open petergoes opened 8 years ago

petergoes commented 8 years ago

Since ES2015 can't be minified, do we completely stop parsing? Or should other parsers continue?

petergoes commented 8 years ago

I found uglify-js-harmony. This solved the issue I had. I have no experiance with it. Thoughts about it?

jbmoelker commented 8 years ago

Suggestion: (conditionally) add babel first?

petergoes commented 8 years ago

Babili, a es6 aware minifier by babel, might be an option? Still in beta though