Fix relative windows path
This commit is contained in:
parent
bf48112fa9
commit
8eb8c86be4
2
index.js
2
index.js
|
|
@ -332,7 +332,7 @@ HtmlWebpackPlugin.prototype.htmlWebpackPluginAssets = function (compilation, chu
|
|||
// Use the configured public path or build a relative path
|
||||
var publicPath = typeof compilation.options.output.publicPath !== 'undefined'
|
||||
? compilation.options.output.publicPath
|
||||
: path.relative(path.dirname(self.options.filename), '.');
|
||||
: path.relative(path.dirname(self.options.filename), '.').split(path.sep).join('/');
|
||||
|
||||
if (publicPath.length && publicPath.substr(-1, 1) !== '/') {
|
||||
publicPath += '/';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "html-webpack-plugin",
|
||||
"version": "2.7.0",
|
||||
"version": "2.7.1",
|
||||
"description": "Simplifies creation of HTML files to serve your webpack bundles",
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
|
|
|
|||
Loading…
Reference in New Issue