From 517dfbac32b6c84c2b9091b2187e6b37d484b3a0 Mon Sep 17 00:00:00 2001 From: Oleksandr Khomenko Date: Mon, 14 Sep 2015 17:09:57 -0500 Subject: [PATCH] Use path.normalize instead of path.join --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 25875e8..21ff20a 100644 --- a/index.js +++ b/index.js @@ -103,7 +103,7 @@ HtmlWebpackPlugin.prototype.getTemplateContent = function(compilation, templateP // Use a special index file to prevent double script / style injection if the `inject` option is truthy templateFile = path.join(__dirname, self.options.inject ? 'default_inject_index.html' : 'default_index.html'); } else { - templateFile = path.join(templateFile); + templateFile = path.normalize(templateFile); } compilation.fileDependencies.push(templateFile); return fs.readFileAsync(templateFile, 'utf8')