implemented vite caching and added adaptive agriculture logos and manifest
This commit is contained in:
parent
9633fb7bb6
commit
1979976ad5
19 changed files with 4924 additions and 706 deletions
|
|
@ -1,10 +1,20 @@
|
|||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import tsconfigPaths from 'vite-tsconfig-paths'
|
||||
import { VitePWA } from 'vite-plugin-pwa';
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react(), tsconfigPaths()],
|
||||
plugins: [
|
||||
react(),
|
||||
tsconfigPaths(),
|
||||
VitePWA({
|
||||
registerType: 'autoUpdate', // Automatically updates the service worker when a new version is available
|
||||
workbox: {
|
||||
globPatterns: ['**/*.{js,css,html,png,jpg,svg}'], // Cache all common asset types
|
||||
},
|
||||
}),
|
||||
],
|
||||
build: {
|
||||
outDir: './build',
|
||||
sourcemap: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue