grunt任务ngtemplates运行无限期(近一个小时,没有完成),CPU利用率为100%。如果我评论这个任务,那么构建完成。 使用ngtemplates执行构建任务,并在另一台机器上完成确定。 任何想法/线索非常感谢。grunt ngtemplates任务100%cpu
节点版本:0.10.29 咕噜-CLI:v0.1.13 咕噜:v0.4.5
ngtemplates: {
app: {
cwd: '<%= yeoman.app %>',
src: ['views/{,*/}*.html', 'views/inbox/{,*/}*.html' , 'scripts/directives/*.html'],
dest: 'scripts/templates.js',
options: {
usemin: 'scripts/scripts.js', // <~~ This came from the <!-- build:js --> block
htmlmin: {
collapseBooleanAttributes: true,
collapseWhitespace: true,
removeAttributeQuotes: true,
removeComments: true, // Only if you don't use comment directives!
removeEmptyAttributes: true,
removeRedundantAttributes: true,
removeScriptTypeAttributes: true,
removeStyleLinkTypeAttributes: true
}
}
}
}
非常感谢,
如果您需要一些帮助,请发布您的Gruntfile.js /任务代码。 – 2014-08-28 16:12:34