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 = {