Skip to content

Commit

Permalink
experimental: faster server start & build
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed Aug 12, 2024
1 parent fc7df81 commit f7615ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default defineConfig({
}
if (!dev) {
build.onBeforeBuild(async () => {
await prep()
prep()
})
build.onAfterBuild(async () => {
const { count, size, warnings } = await generateSW({
Expand All @@ -144,7 +144,7 @@ export default defineConfig({
})
})
}
build.onBeforeStartDevServer(prep)
build.onBeforeStartDevServer(() => prep())
},
},
],
Expand Down

0 comments on commit f7615ae

Please sign in to comment.