dtan/vite.config.ts
2024-03-19 10:57:58 +00:00

26 lines
465 B
TypeScript

import { defineConfig, searchForWorkspaceRoot } 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",
devOptions: {
enabled: false,
type: "module",
},
}),
],
server: {
fs: {
strict: false,
},
},
worker: {
format: "es",
},
});