Support lodash template's HTML "escape" delimiter (<%- %>)
This commit is contained in:
parent
37e744dd85
commit
b3913d0400
|
|
@ -21,5 +21,5 @@ module.exports = function (source) {
|
|||
// Use underscore for a minimalistic loader
|
||||
var options = loaderUtils.parseQuery(this.query);
|
||||
var template = _.template(source, options);
|
||||
return 'module.exports = ' + template;
|
||||
};
|
||||
return 'var _ = require("lodash"); module.exports = ' + template;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue