【发布时间】:2014-10-22 14:00:42
【问题描述】:
grunt 任务 ngtemplates 以 100% 的 cpu 利用率无限期地运行(几乎一个小时且未完成)。如果我评论此任务,则构建完成。 并且带有 ngtemplates 的构建任务在另一台机器上运行并完成。 非常感谢任何想法/线索。
节点版本:0.10.29 咕噜声: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/task 代码。