当生成AngularJS项目的版本时,获取UGlifying源.tmp / concat / scripts / scripts.js失败

时间:2019-05-10 09:17:32

标签: angularjs

在文件夹dist / script中创建angularjs项目的构建,我没有得到一个script.js文件。

我尝试了grunt build --prod --force命令来创建构建

Running "uglify:generated" (uglify) task
JS_Parse_Error {enter code here
  message: 'Unexpected token: punc ())',
  filename: '../../.tmp/concat/scripts/scripts.js',
  line: 5122,
  col: 59,
  pos: 161138,
  stack:
   'Error\n    at new JS_Parse_Error (D:\\...node_modules\\uglify-node_modules\\uglify-js\\lib\\parse.js:1427:20)' }
>> Uglifying source .tmp/concat/scripts/scripts.js failed.
Warning: Uglification failed.
Unexpected token: punc ()). 
Line 5122 in .tmp/concat/scripts/scripts.jsenter code here
 Used --force, continuing.

警告:无法读取未定义的已使用的属性min,在此强制输入-继续。

0 个答案:

没有答案