How to minify ES6 functions with gulp-uglify?

后端 未结 8 1194
时光说笑
时光说笑 2020-12-23 11:23

When I run gulp I get the following error:

[12:54:14] { [GulpUglifyError: unable to minify JavaScript]
cause:
{ [SyntaxError: Unexpected token: operator (>         


        
8条回答
  •  星月不相逢
    2020-12-23 11:59

    Using gulp-uglify-es instead of gulp-uglify helped me perfectly to accomplish same as you're asking for

提交回复
热议问题