Cleaner webpack compilation output
This commit is contained in:
parent
8fbee6a732
commit
9046e46d12
2
index.js
2
index.js
|
|
@ -595,7 +595,7 @@ HtmlWebpackPlugin.prototype.createHtmlTag = function (tagDefinition) {
|
|||
HtmlWebpackPlugin.prototype.getFullTemplatePath = function (template, context) {
|
||||
// If the template doesn't use a loader use the lodash template loader
|
||||
if (template.indexOf('!') === -1) {
|
||||
template = require.resolve('./lib/loader.js') + '!' + path.resolve(context, template);
|
||||
template = 'html-webpack-plugin/lib/loader.js!' + path.resolve(context, template);
|
||||
}
|
||||
// Resolve template path
|
||||
return template.replace(
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
// This file is only be used for internal webpack html plugin unit testing.
|
||||
// To simulates that the html-webpack-plugin is installed in the node_modules directory.
|
||||
module.exports = require('../../');
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// This file is only be used for internal webpack html plugin unit testing.
|
||||
// To simulates that the html-webpack-plugin is installed in the node_modules directory.
|
||||
module.exports = require('../../../lib/loader.js');
|
||||
Loading…
Reference in New Issue