@@ -2,65 +2,14 @@ import path from "node:path";
22import react from "@vitejs/plugin-react" ;
33import { defineConfig } from "vite" ;
44import mkcert from "vite-plugin-mkcert" ;
5- import { VitePWA } from "vite-plugin-pwa" ;
5+
66import topLevelAwait from "vite-plugin-top-level-await" ;
77import wasm from "vite-plugin-wasm" ;
88import tsconfigPaths from "vite-tsconfig-paths" ;
99
1010// https://vitejs.dev/config/
1111export default defineConfig ( {
12- plugins : [
13- react ( ) ,
14- wasm ( ) ,
15- topLevelAwait ( ) ,
16- tsconfigPaths ( ) ,
17- mkcert ( ) ,
18- VitePWA ( {
19- registerType : "autoUpdate" ,
20- workbox : {
21- maximumFileSizeToCacheInBytes : 4000000 , // 4 MB
22- navigateFallback : "/index.html" ,
23- } ,
24- includeAssets : [ "apple-touch-icon.png" ] ,
25- manifest : {
26- name : "Glitch Bomb" ,
27- short_name : "Glitch Bomb" ,
28- description : "Play Glitch Bomb and manage your on-chain profile." ,
29- start_url : "/" ,
30- scope : "/" ,
31- id : "/" ,
32- icons : [
33- {
34- src : "/web-app-manifest-192x192.png" ,
35- sizes : "192x192" ,
36- type : "image/png" ,
37- purpose : "any" ,
38- } ,
39- {
40- src : "/web-app-manifest-512x512.png" ,
41- sizes : "512x512" ,
42- type : "image/png" ,
43- purpose : "any" ,
44- } ,
45- {
46- src : "/web-app-manifest-192x192-maskable.png" ,
47- sizes : "192x192" ,
48- type : "image/png" ,
49- purpose : "maskable" ,
50- } ,
51- {
52- src : "/web-app-manifest-512x512-maskable.png" ,
53- sizes : "512x512" ,
54- type : "image/png" ,
55- purpose : "maskable" ,
56- } ,
57- ] ,
58- theme_color : "#591FFF" ,
59- background_color : "#591FFF" ,
60- display : "standalone" ,
61- } ,
62- } ) ,
63- ] ,
12+ plugins : [ react ( ) , wasm ( ) , topLevelAwait ( ) , tsconfigPaths ( ) , mkcert ( ) ] ,
6413 resolve : {
6514 alias : {
6615 "@" : path . resolve ( __dirname , "./src" ) ,
0 commit comments