html2js failing to compile
pallix opened this issue · comments
Pierre Allix commented
Hello,
I got an error when trying to use html2js:
Running "html2js:common" (html2js) task
Warning: src/app/common/directives/breadcrumb/breadcrumb-entry.tpl.html
TypeError: Cannot call method 'trim' of undefined Use --force to continue.
Aborted due to warnings.
The content of the file can be found at:
grunt --version
grunt-cli v0.1.13
grunt v0.4.5
Lingjun Meng commented
@pallix
I test your file:
define(function () {return '%li{"class" => "bc-default-a"}\n %a{"ng-click" => "openView(state.name, state.params)", "tooltip" => "{{state.tooltip}}", "tooltip-append-to-body" => "true", "tooltip-placement" => "bottom"}\n {{state.label}}\n \n';});
if you use grunt, maybe you should see grunt-html2js
Pierre Allix commented
Ok I thing I miscorrectly identified the problem. There is a bug in the npm html-minifier. kangax/html-minifier#172 Thank you.