Skip to content

Commit 3b344db

Browse files
author
benholloway
committed
remove html minification to avoid crash on badly formed html tags
1 parent 1ab5ade commit 3b344db

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
@@ -153,8 +153,9 @@ function init() {
153153
cliArgs = cliArgs || yargs.resolveArgv();
154154
transforms = [
155155
to5ify.configure({ ignoreRegex: /(?!)/ }), // convert any es6 to es5 (ignoreRegex is degenerate)
156-
stringify({ minify: true }), // allow import of html to a string
156+
stringify({ minify: false }), // allow import of html to a string
157157
!cliArgs.unminified && ngAnnotate, { sourcemap: true } // @ngInject for angular injection points
158158
];
159+
// TODO @bholloway fix stringify({ minify: true }) throwing error on badly formed html so that we can minify
159160
// TODO @bholloway fix sourcemaps in ngAnnotate so that it may be included even when not minifying
160161
}

0 commit comments

Comments
 (0)