iwa-inspector/vite.config.ts

25 lines
575 B
TypeScript
Raw Permalink Normal View History

2023-05-17 01:56:27 +00:00
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { VitePWA } from "vite-plugin-pwa";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), VitePWA({
registerType: 'autoUpdate',
workbox: {
globPatterns: ['**/*.{js,css,html,ico,png,svg,numbers}', '**/protos']
},
manifest: {
icons: [
{
src: "https://sheetjs.com/favico/favicon-196x196.png",
sizes: "196x196",
type: "image/png",
purpose: "any"
}
]
}
})],
base: ""
})