Skip to content

Commit

Permalink
fix: call buildStart hook in middleware mode (#3080)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Apr 28, 2021
1 parent deba7d1 commit c374a54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite/src/node/server/index.ts
Expand Up @@ -513,6 +513,7 @@ export async function createServer(
serverConfig.port = (httpServer.address() as AddressInfo).port
})
} else {
await container.buildStart({})
await runOptimize()
}

Expand Down

0 comments on commit c374a54

Please sign in to comment.