Skip to content

Commit

Permalink
fix: #173
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangHongEn committed Nov 3, 2024
1 parent 4f43bc0 commit 97f61d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/pluginAddEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const addEntry = ({
},
configResolved(config) {
viteConfig = config;
devEntryPath = config.base + devEntryPath.replace(/^\//, '');
devEntryPath = config.base + devEntryPath.replace(/\\\\?/g, '/').replace(/.+?\:([/\\])[/\\]?/, '$1').replace(/^\//, '')
},
configureServer(server) {
server.httpServer?.once?.('listening', () => {
Expand Down

0 comments on commit 97f61d5

Please sign in to comment.