Fix relative windows path

This commit is contained in:
Jan Nicklas 2016-01-20 16:51:07 +01:00 committed by Jan Nicklas
parent bf48112fa9
commit 8eb8c86be4
2 changed files with 2 additions and 2 deletions

View File

@ -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 += '/';

View File

@ -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": [