implemented vite caching and added adaptive agriculture logos and manifest

This commit is contained in:
Carter 2025-02-27 12:06:41 -06:00
parent 9633fb7bb6
commit 1979976ad5
19 changed files with 4924 additions and 706 deletions

View file

@ -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,