打包时候出现错误
Build Failed: GulpUglifyError: unable to minify JavaScript
Caused by: SyntaxError: Unexpected token: name (lastTime)
File: C:\CocosCreator\project.js
Line: 1353
at createError (C:\CocosCreator\resources\app.asar\node_modules\gulp-uglify\lib\create-error.js
14)
at apply (C:\CocosCreator\resources\app.asar\node_modules\gulp-uglify\node_modules\lodash_apply.js:16:25)
at wrapper (C:\CocosCreator\resources\app.asar\node_modules\gulp-uglify\node_modules\lodash_createCurry.js:41:12)
at C:\CocosCreator\resources\app.asar\node_modules\gulp-uglify\lib\minify.js:54:15
at DestroyableTransform._transform (C:\CocosCreator\resources\app.asar\node_modules\gulp-uglify\composer.js
23)
at DestroyableTransform.Transform._read (C:\CocosCreator\resources\app.asar\node_modules\readable-stream\lib_stream_transform.js:184:10)
at DestroyableTransform.Transform._write (C:\CocosCreator\resources\app.asar\node_modules\readable-stream\lib_stream_transform.js:172:83)
at doWrite (C:\CocosCreator\resources\app.asar\node_modules\readable-stream\lib_stream_writable.js:428:64)
at writeOrBuffer (C:\CocosCreator\resources\app.asar\node_modules\readable-stream\lib_stream_writable.js:417:5)
at DestroyableTransform.Writable.write (C:\CocosCreator\resources\app.asar\node_modules\readable-stream\lib_stream_writable.js:334:11)
at Async.series.t (C:\CocosCreator\resources\app.asar\editor\core\builder.js:1:3101)
at C:\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:726:13
at C:\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:52:16
at C:\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:264:21
at C:\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:44:16
at C:\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:723:17
at C:\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:167:37
at Gulp.doneCallback (C:\CocosCreator\resources\app.asar\editor\core\gulp-build.js:1:20524)
at Gulp.Orchestrator.stop (C:\CocosCreator\resources\app.asar\node_modules\orchestrator\index.js:150:9)