From 9bdb6189ea630a634a84aabc81a9bbe8c47bf92b Mon Sep 17 00:00:00 2001 From: Jan Nicklas Date: Sun, 29 Jan 2017 14:46:14 +0100 Subject: [PATCH] Release 2.27.1 --- CHANGELOG.md | 5 ++++- index.js | 2 +- package.json | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 25b490c..b7a5cd7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,14 @@ Change History ============== +v2.27.1 +--- +* Revert 2.25.0 loader resolving + v2.27.0 --- * Fix a chunksorter webpack 2 issue (#569) * Fix template path resolving(#542) -* Revert 2.25.0 loader resolvement v2.26.0 --- diff --git a/index.js b/index.js index 1d03558..47e6109 100644 --- a/index.js +++ b/index.js @@ -605,7 +605,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 = 'html-webpack-plugin/lib/loader.js!' + path.resolve(context, template); + template = require.resolve('./lib/loader.js') + '!' + path.resolve(context, template); } // Resolve template path return template.replace( diff --git a/package.json b/package.json index fd72e2f..416cac8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "html-webpack-plugin", - "version": "2.27.0", + "version": "2.27.1", "description": "Simplifies creation of HTML files to serve your webpack bundles", "main": "index.js", "files": [