ericclemmons / grunt-angular-templates

Grunt build task to concatenate & pre-load your AngularJS templates
MIT License
710 stars 107 forks source link

Better feedback of HTML syntax errors #141

Closed marcospont closed 8 years ago

marcospont commented 8 years ago

ngTemplate task stops when a syntax error is found in any HTML file.

Even using --verbose in grunt, the syntax errors are not visible.

underscorebrody commented 8 years ago

@marcospont In my testing just now i created a syntax error in an HTML file and got feedback from the grunt task saying there was a Parse Error with a reference to the line. Can you provide an example where syntax errors are being swallowed?

eduardoinnorway commented 8 years ago

This is still an issue, and there is nothing to provide because we dont know why it gets stuck, refer to this issue: https://github.com/ericclemmons/grunt-angular-templates/issues/112

underscorebrody commented 8 years ago

I was able to get my grunt task to hang, but unfortunately the issue lies in html-minifier so we don't control it. With --verbose on you should now be able to see which template it was processing when it started hanging. I would also recommend trying https://github.com/praveenvijayan/grunt-html-validation or https://github.com/htmllint/grunt-htmllint if you're running into this problem as that should hopefully help you catch it ahead of time.