Skip to content

Commit 38e4508

Browse files
author
benholloway
committed
stopgap fix for ng-annotate messing up sourcemaps
1 parent a480af4 commit 38e4508

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tasks/javascript.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ var CONSOLE_WIDTH = config.getConsoleWidth();
2121
var TRANSFORMS = [
2222
to5ify.configure({ ignoreRegex: /(?!)/ }), // convert any es6 to es5 (ignoreRegex is degenerate)
2323
stringify({ minify: true }), // allow import of html to a string
24-
ngAnnotate // @ngInject for angular injection points
24+
config.isMinify && ngAnnotate // @ngInject for angular injection points
2525
];
26+
// TODO @bholloway fix sourcemaps in ngAnnotate so that it may be included even when not minifying
2627

2728
gulp.task('js', function (done) {
2829
console.log(hr('-', CONSOLE_WIDTH, 'javascript'));

0 commit comments

Comments
 (0)