From 3f55437bfb8aa3baf331eaff18f53909ecd49a64 Mon Sep 17 00:00:00 2001 From: Kees Kluskens Date: Mon, 28 Sep 2015 23:48:54 +0200 Subject: [PATCH] Another try at fixing the public path. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 01ea85d..37072e3 100644 --- a/index.js +++ b/index.js @@ -335,7 +335,7 @@ HtmlWebpackPlugin.prototype.htmlWebpackPluginAssets = function(compilation, chun path.relative(path.dirname(self.options.filename), '.'); if (publicPath.length && publicPath.substr(-1, 1) !== '/') { - publicPath = urlModule.resolve(publicPath, '.') + '/'; + publicPath = path.join(urlModule.resolve(publicPath + '/', '.'), '/'); } var assets = {