Escape template properties for minified precompiled templates and add a lodash template="…" exports="…" build test.

Former-commit-id: 866252235232ab52cf21842554c37573de4cf402
This commit is contained in:
John-David Dalton
2012-10-11 23:51:15 -07:00
parent 58dc0b1aef
commit c8f871ff2a
4 changed files with 32 additions and 12 deletions

View File

@@ -119,7 +119,7 @@
// use simple optimizations when minifying template files
if (this.isTemplate) {
options = options.map(function(value) {
return value.replace(/^(compilation_level)=.+$/, '$1=SIMPLE_OPTIMIZATIONS');
return value.replace(/^(--compilation_level)=.+$/, '$1=SIMPLE_OPTIMIZATIONS');
});
}

View File

@@ -215,7 +215,6 @@
'take',
'tap',
'template',
'templates',
'templateSettings',
'throttle',
'times',