当编译前端代码出现下述错误:

events.js:183
      throw er; // Unhandled 'error' event
      ^
GulpUglifyError: unable to minify JavaScript
    at createError (********\node_modules\gulp-uglify\lib\create-error.js:6:14)
    at apply (********\node_modules\lodash\_apply.js:16:25)
    at wrapper (********\node_modules\lodash\_createCurry.js:41:12)
    at ********\node_modules\gulp-uglify\lib\minify.js:54:15
    at DestroyableTransform._transform (********\node_modules\gulp-uglify\composer.js:10:23)
    at DestroyableTransform.Transform._read (********\node_modules\readable-stream\lib\_stream_transform.js:184:10)
    at DestroyableTransform.Transform._write (********\node_modules\readable-stream\lib\_stream_transform.js:172:83)
    at doWrite (********\node_modules\readable-stream\lib\_stream_writable.js:418:64)
    at writeOrBuffer (********\node_modules\readable-stream\lib\_stream_writable.js:407:5)
    at DestroyableTransform.Writable.write (********\node_modules\readable-stream\lib\_stream_writable.js:334:11)

该怎么办?


↙↙↙阅读原文可查看相关链接,并与作者交流