Skip to content

Commit

Permalink
chore: 添加skipwaiting配置
Browse files Browse the repository at this point in the history
  • Loading branch information
Stan-BK committed Jan 1, 2024
1 parent 9ec9552 commit 3233f85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ export default defineConfig(({ mode }) => {
srcDir: 'src',
filename: 'sw.ts',
strategies: 'injectManifest',
workbox: {
clientsClaim: true,
skipWaiting: true
},
manifest: {
name: 'Notice Book',
short_name: 'NBook',
Expand Down

0 comments on commit 3233f85

Please sign in to comment.