Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(loader): fix publicPath regression
... when the publicPath is set to an empty string. The publicPath should resolve to an empty string in this case and _not_ `/`
  • Loading branch information
rmja authored Apr 25, 2019
commit 1c789fb2383d8c23e02ce103c75905833249edd2
2 changes: 1 addition & 1 deletion src/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function pitch(request) {
const childFilename = '*'; // eslint-disable-line no-path-concat
const publicPath =
typeof options.publicPath === 'string'
? options.publicPath.endsWith('/')
? options.publicPath === '' || options.publicPath.endsWith('/')
? options.publicPath
: `${options.publicPath}/`
: typeof options.publicPath === 'function'
Expand Down