Fix public path

This commit is contained in:
Jan Nicklas 2015-09-23 12:38:22 +02:00
parent 74a8743aaf
commit bba8e6bdf6
1 changed files with 1 additions and 1 deletions

View File

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