ohroy / hexo-neat

auto Minify html、js、css and make it neat
74 stars 11 forks source link

Error minifying ES6 js code #17

Open lzctuhao opened 4 years ago

lzctuhao commented 4 years ago

Can't minify ES6 js code. This is a problem caused by uglify. 压缩ES6的js代码会报错。现已知uglify有该问题。 比如,下面一段代码就会引起报错:

let a=1;
lzctuhao commented 4 years ago

https://blog.skk.moe/post/fix-gulp-uglify-es6-compatibility-issue/