From bba8e6bdf632a5f7fa8c1ff09cf115cc3ce58a13 Mon Sep 17 00:00:00 2001 From: Jan Nicklas Date: Wed, 23 Sep 2015 12:38:22 +0200 Subject: [PATCH] Fix public path --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index fb97325..01ea85d 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 = urlModule.resolve(publicPath, '.') + '/'; } var assets = {