grunt-angular-templates
grunt-angular-templates copied to clipboard
"Append" breaks if target file ends in comment, like for sourcemapping
My target file ends in a sourcemapping comment, which causes the "append" option to break because it appends to the comment instead of starting a new line. It looks like this:
//# sourceMappingURL=orbs.js.mapangular.module('orbs').run(['$templateCache', function($templateCache) {
Instead of this:
//# sourceMappingURL=orbs.js.map
angular.module('orbs').run(['$templateCache', function($templateCache) {
I propose making "append" always start on a new line to avoid this problem.