experimental: faster server start & build
This commit is contained in:
parent
fc7df81b0f
commit
f7615ae581
1 changed files with 2 additions and 2 deletions
|
|
@ -130,7 +130,7 @@ export default defineConfig({
|
|||
}
|
||||
if (!dev) {
|
||||
build.onBeforeBuild(async () => {
|
||||
await prep()
|
||||
prep()
|
||||
})
|
||||
build.onAfterBuild(async () => {
|
||||
const { count, size, warnings } = await generateSW({
|
||||
|
|
@ -144,7 +144,7 @@ export default defineConfig({
|
|||
})
|
||||
})
|
||||
}
|
||||
build.onBeforeStartDevServer(prep)
|
||||
build.onBeforeStartDevServer(() => prep())
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue