Cleaner webpack compilation output

This commit is contained in:
Jan Nicklas 2016-10-29 08:41:22 +02:00
parent 8fbee6a732
commit 9046e46d12
3 changed files with 7 additions and 1 deletions

View File

@ -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(

3
node_modules/html-webpack-plugin/index.js generated vendored Normal file
View File

@ -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('../../');

3
node_modules/html-webpack-plugin/lib/loader.js generated vendored Normal file
View File

@ -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');