【发布时间】:2013-08-29 12:14:09
【问题描述】:
有人在使用 Concat (Loop Infinite) 时遇到过这个错误吗? http://pastebin.com/XQsYuqdc
Windows 上的 GruntJs 终端:PowerShell
【问题讨论】:
标签: powershell gruntjs grunt-contrib-concat
有人在使用 Concat (Loop Infinite) 时遇到过这个错误吗? http://pastebin.com/XQsYuqdc
Windows 上的 GruntJs 终端:PowerShell
【问题讨论】:
标签: powershell gruntjs grunt-contrib-concat
您正在定义一个将自行运行的任务,进入一个无限循环。
这是问题所在:
grunt.registerTask( 'concat', [ 'concat' ] );
这也会是个问题:
grunt.registerTask( 'copy', [ 'copy' ] );
在这两种情况下,没有理由定义自定义任务来运行 grunt 任务(我建议删除这两行,然后事情就会起作用)。
您可以定义一个自定义任务来运行这两个任务,例如:
grunt.registerTask( 'build', [ 'concat', 'copy' ] );
【讨论】: