简体   繁体   English

AngularJS - 在htmlmin任务中阻止了grunt构建

[英]AngularJS - grunt build blocked at htmlmin task

I've made an AngularJS web application using Yeoman as project generator. 我使用Yeoman作为项目生成器创建了一个AngularJS Web应用程序。 When I run the command: 当我运行命令时:

grunt build

all tasks start, but get stuck at the htmlmin task: 所有任务开始,但卡在htmlmin任务:

Running "htmlmin:dist" (htmlmin) task

and I need to do CTRL+Z. 我需要做CTRL + Z. Other tasks are done without problem (except some warnings in jshint). 其他任务没有问题(除了jshint中的一些警告)。 However htmlmin task seems to be done when I look in HTML file in dist directory. 但是当我查看dist目录中的HTML文件时,似乎完成了htmlmin任务。 This problem came recentlty, in previous builds everything was OK. 这个问题最近出现了,在以前的版本中,一切都还可以。

What can cause htmlmin task issues? 什么可能导致htmlmin任务问题?

Thanks to the help of Prayag Verma I solved the issue. 感谢Prayag Verma的帮助,我解决了这个问题。 The problem was an attribute value not correctly put between "". 问题是属性值未正确放在“”之间。 To identify the file which had the error, I order the views folder (in dist project folder of Yeoman) alphabetically and I found the first HTML file that wasn't minified: that file, in the development section of my web app had the error. 为了识别出错的文件,我按字母顺序排序了views文件夹(在Yeoman的dist项目文件夹中),我找到了第一个没有缩小的HTML文件:该文件,在我的web应用程序的开发部分出现错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM