-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathvite.config.js
More file actions
36 lines (35 loc) · 1.02 KB
/
vite.config.js
File metadata and controls
36 lines (35 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { VitePWA } from 'vite-plugin-pwa'
export default defineConfig({
base: './',
plugins: [
react(),
VitePWA({
registerType: 'autoUpdate',
includeAssets: ['favicon.svg'],
manifest: {
name: 'CSS Motion Master',
short_name: 'MotionMaster',
description: 'A world-class CSS Animation Studio and creative developer tool',
theme_color: '#6c63ff',
background_color: '#0f0f1a',
display: 'standalone',
start_url: './',
icons: [
{ src: 'favicon.svg', sizes: 'any', type: 'image/svg+xml', purpose: 'any maskable' }
]
},
workbox: {
globPatterns: ['**/*.{js,css,html,ico,png,svg,woff2}'],
runtimeCaching: [
{
urlPattern: /\.md$/,
handler: 'NetworkFirst',
options: { cacheName: 'docs-cache', expiration: { maxEntries: 50, maxAgeSeconds: 86400 } }
}
]
}
})
]
})