Skip to content

Commit

Permalink
fix: use platform paths for emitted names
Browse files Browse the repository at this point in the history
  • Loading branch information
j-maas committed Mar 19, 2022
1 parent 9a7b133 commit a50601d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/html.ts
Expand Up @@ -588,7 +588,7 @@ export function buildHtmlPlugin(config: ResolvedConfig): Plugin {
}
}

const shortEmitName = path.posix.relative(config.root, id)
const shortEmitName = path.relative(config.root, id)
// no use assets plugin because it will emit file
let match: RegExpExecArray | null
let s: MagicString | undefined
Expand Down

0 comments on commit a50601d

Please sign in to comment.