build: cache webp images

This commit is contained in:
鲁树人 2023-12-23 15:59:28 +00:00
parent 7e741412a8
commit f194dfd135

View File

@ -57,7 +57,7 @@ export default defineConfig({
registerType: 'prompt', registerType: 'prompt',
workbox: { workbox: {
// Cache everything from dist // Cache everything from dist
globPatterns: ['**/*.{js,css,html,ico,png,svg,wasm}'], globPatterns: ['**/*.{js,css,html,ico,png,svg,wasm,webp}'],
}, },
manifest: { manifest: {
display: 'standalone', display: 'standalone',