From 396cdedf8a554465d00797bb4d279b085e2e05d8 Mon Sep 17 00:00:00 2001 From: Oleksandr Khomenko Date: Mon, 14 Sep 2015 17:18:38 -0500 Subject: [PATCH] Wrapped with path.join to fix test on io.js --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 21ff20a..0964390 100644 --- a/index.js +++ b/index.js @@ -179,7 +179,7 @@ HtmlWebpackPlugin.prototype.htmlWebpackPluginAssets = function(compilation, webp 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 = {