Skip to content

Commit

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

0 comments on commit 9f3285b

Please sign in to comment.