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