html-webpack-plugin/loader.js

11 lines
227 B
JavaScript

'use strict';
module.exports = function() {
if (this.cacheable) {
this.cacheable();
}
var template = JSON.parse(decodeURIComponent(this.query.substr(1)));
return "module.exports = require('" + template + "');";
};