powershell - GruntJS Concat不起作用(超出了最大调用堆栈大小)

标签 powershell gruntjs grunt-contrib-concat

有谁遇到过Concat(Loop Infinite)这个错误?
http://pastebin.com/XQsYuqdc

Windows上的GruntJs
终端:PowerShell

最佳答案

您正在定义一个任务,该任务将自行运行,并进入无限循环。

这是问题所在:

grunt.registerTask( 'concat', [ 'concat' ] );

这也将是一个问题:

grunt.registerTask( 'copy', [ 'copy' ] );

在这两种情况下,都没有理由定义自定义任务来运行grunt任务(我建议删除这两行,然后一切正常)。

您可以定义一个自定义任务来同时运行这两个任务,例如:

grunt.registerTask( 'build', [ 'concat', 'copy' ] );

关于powershell - GruntJS Concat不起作用(超出了最大调用堆栈大小),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18510722/

相关文章:

javascript - grunt-ng-constant 目标不能持续工作

javascript - 如何使用 grunt 和 browserify 打包我的 Angular 模板

javascript - 从 NodeJS 调用 PowerShell

powershell - 当其他用户使用PowerShell注销时自动登录用户

regex - 使用 powershell 提取并打印 MAC 的前 3 个八位字节

javascript - 从 Gruntfile 中获取 requirejs.config

gruntjs - Grunt concat + uglify带有源 map

powershell - 将可用内存输出为单个值(以兆字节为单位)

javascript - Grunt 任务陷入无限循环