2024-03-19 10:57:58 +00:00
|
|
|
import { defineConfig, searchForWorkspaceRoot } from "vite";
|
2023-11-27 13:19:14 +00:00
|
|
|
import react from "@vitejs/plugin-react";
|
2024-03-19 10:57:58 +00:00
|
|
|
import { VitePWA } from "vite-plugin-pwa";
|
2023-11-27 13:19:14 +00:00
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
2024-03-19 10:57:58 +00:00
|
|
|
plugins: [
|
|
|
|
react(),
|
|
|
|
VitePWA({
|
|
|
|
registerType: "autoUpdate",
|
|
|
|
devOptions: {
|
|
|
|
enabled: false,
|
|
|
|
type: "module",
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
server: {
|
|
|
|
fs: {
|
|
|
|
strict: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
worker: {
|
|
|
|
format: "es",
|
|
|
|
},
|
2023-11-27 13:19:14 +00:00
|
|
|
});
|