Skip to content

Commit a513fbe

Browse files
author
benholloway
committed
also process html with ngInject for consistency of javascript rendering
1 parent 06c07eb commit a513fbe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

npm-shrinkwrap.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tasks/javascript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ function setUpTaskJavascript(context) {
221221
return [
222222
babelify.configure({ignore: /(?!)/}), // convert any es6 to es5 (degenerate regex)
223223
stringify({minify: false}), // allow import of html to a string
224-
ngInject(), // annotate dependencies for angular
224+
ngInject({filter: /\.(?!json)\w+$/}), // annotate dependencies for angular (everything except .json)
225225
isMinify && esmangleify() // minify
226226
].filter(Boolean);
227227
// TODO @bholloway fix stringify({ minify: true }) throwing error on badly formed html so that we can minify

0 commit comments

Comments
 (0)