grunt-angular-templates icon indicating copy to clipboard operation
grunt-angular-templates copied to clipboard

"Append" breaks if target file ends in comment, like for sourcemapping

Open distinctdan opened this issue 5 years ago • 0 comments

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.

distinctdan avatar Dec 13 '18 23:12 distinctdan