This commit is contained in:
subnub
2025-02-21 12:58:26 -05:00
parent 5c0b020ffc
commit 240d959d41
2 changed files with 10 additions and 2 deletions
+2 -1
View File
@@ -130,6 +130,7 @@
"superagent-binary-parser": "^1.0.1",
"supertest": "^6.3.4",
"tailwindcss": "^3.4.4",
"typescript-eslint": "^7.14.1"
"typescript-eslint": "^7.14.1",
"vite-plugin-pwa": "^0.21.1"
}
}
+8 -1
View File
@@ -1,6 +1,7 @@
import { defineConfig, loadEnv } from "vite";
import react from "@vitejs/plugin-react";
import { visualizer } from "rollup-plugin-visualizer";
import { VitePWA } from "vite-plugin-pwa";
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, "./src/config/");
@@ -10,7 +11,13 @@ export default defineConfig(({ mode }) => {
console.log(`\nBackend Development Proxy URL: ${proxyURL}/api\n`);
return {
plugins: [react(), visualizer()],
plugins: [
react(),
visualizer(),
VitePWA({
registerType: "autoUpdate",
}),
],
build: {
outDir: "dist-frontend",
},