Skip to content

Commit

Permalink
Fix JS path with excedent slash
Browse files Browse the repository at this point in the history
  • Loading branch information
Sébastien LeBlanc committed Jun 14, 2022
1 parent 3ab87c1 commit 5e522c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/builder/Entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ class Entry {
let name = output
.pathFromPublic(this.mix.config.publicPath)
.replace(/\.js$/, '')
.replace(/\\/g, '/');
.replace(/\\/g, '/')
.replace(/^\//, '');

this.base = path.parse(name).dir;

Expand Down

0 comments on commit 5e522c7

Please sign in to comment.