Skip to content

Commit

Permalink
chore: tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Jan 26, 2024
1 parent d916bf7 commit 056bdc8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/helper/src/node/bundler/customizeDevServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ export const customizeDevServer = (
const bundlerName = getBundlerName(app)

// in dev
if (app.env.isDev)
if (app.env.isDev) {
// for vite
if (bundlerName === 'vite') {
// for vite
const viteBundlerOptions = bundlerOptions as ViteBundlerOptions
const handler: HandleFunction = (
request: IncomingMessage,
Expand Down Expand Up @@ -108,4 +108,5 @@ export const customizeDevServer = (
: middlewares
}
}
}
}

0 comments on commit 056bdc8

Please sign in to comment.