Fix public path
This commit is contained in:
parent
74a8743aaf
commit
bba8e6bdf6
2
index.js
2
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 = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue