Skip to content

Commit

Permalink
fix(vite-plugin-warmup): 仅服务时开启
Browse files Browse the repository at this point in the history
  • Loading branch information
markthree committed Dec 28, 2023
1 parent 61a1401 commit 48afba2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions presets/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ function ForceRestart(paths = ['package.json', 'pnpm-lock.yaml']): Plugin {
function Warmup(): Plugin {
return {
name: 'vite-plugin-warmup',
apply: 'serve',
config(config) {
config?.server?.warmup?.clientFiles?.push('./src/**/*')
},
Expand Down

0 comments on commit 48afba2

Please sign in to comment.