From 8eb8c86be4582a41e66b29a32c5f48e1add4be6f Mon Sep 17 00:00:00 2001 From: Jan Nicklas Date: Wed, 20 Jan 2016 16:51:07 +0100 Subject: [PATCH] Fix relative windows path --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 30b057e..edebe37 100644 --- a/index.js +++ b/index.js @@ -332,7 +332,7 @@ HtmlWebpackPlugin.prototype.htmlWebpackPluginAssets = function (compilation, chu // Use the configured public path or build a relative path var publicPath = typeof compilation.options.output.publicPath !== 'undefined' ? compilation.options.output.publicPath - : path.relative(path.dirname(self.options.filename), '.'); + : path.relative(path.dirname(self.options.filename), '.').split(path.sep).join('/'); if (publicPath.length && publicPath.substr(-1, 1) !== '/') { publicPath += '/'; diff --git a/package.json b/package.json index aacbdc6..5cb05b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "html-webpack-plugin", - "version": "2.7.0", + "version": "2.7.1", "description": "Simplifies creation of HTML files to serve your webpack bundles", "main": "index.js", "files": [