Skip to content

Commit

Permalink
Fix public dynamic bundle paths when building on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed May 30, 2018
1 parent 54ff5c3 commit 627f394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ function createSplitter (b, opts) {
if (err) return cb(err)
var sri = {}
mappings = mappings.reduce(function (obj, x) {
obj[x.entry] = path.join(publicPath, x.filename)
obj[x.entry] = path.join(publicPath, x.filename).replace(/\\/g, '/')
if (x.integrity) sri[x.entry] = x.integrity
return obj
}, {})
Expand Down

0 comments on commit 627f394

Please sign in to comment.