2024-09-24 12:10:18 +05:30
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
|
import react from '@vitejs/plugin-react-swc'
|
2024-10-15 19:06:53 +05:30
|
|
|
import { VitePWA } from 'vite-plugin-pwa'
|
2024-09-24 12:10:18 +05:30
|
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
|
export default defineConfig({
|
2024-10-15 19:06:53 +05:30
|
|
|
server: {
|
|
|
|
|
host: "0.0.0.0",
|
|
|
|
|
port: 3000, // You can use any port
|
|
|
|
|
},
|
|
|
|
|
plugins: [
|
|
|
|
|
react(),
|
|
|
|
|
VitePWA({
|
|
|
|
|
registerType: "autoUpdate",
|
|
|
|
|
devOptions: {
|
|
|
|
|
enabled: true,
|
|
|
|
|
},
|
|
|
|
|
manifest: {
|
2024-10-15 19:28:32 +05:30
|
|
|
"theme_color": "#8936FF",
|
|
|
|
|
"background_color": "#2f0174",
|
|
|
|
|
"icons": [
|
2024-10-15 19:06:53 +05:30
|
|
|
{
|
2024-10-15 19:28:32 +05:30
|
|
|
"purpose": "maskable",
|
|
|
|
|
"sizes": "512x512",
|
|
|
|
|
"src": "icon512_maskable.png",
|
|
|
|
|
"type": "image/png"
|
2024-10-15 19:06:53 +05:30
|
|
|
},
|
|
|
|
|
{
|
2024-10-15 19:28:32 +05:30
|
|
|
"purpose": "any",
|
|
|
|
|
"sizes": "512x512",
|
|
|
|
|
"src": "icon512_rounded.png",
|
|
|
|
|
"type": "image/png"
|
|
|
|
|
}
|
2024-10-15 19:06:53 +05:30
|
|
|
],
|
2024-10-15 19:28:32 +05:30
|
|
|
"orientation": "any",
|
|
|
|
|
"display": "standalone",
|
|
|
|
|
"dir": "auto",
|
|
|
|
|
"lang": "en-US",
|
|
|
|
|
"name": "Rubix"
|
2024-10-15 19:06:53 +05:30
|
|
|
},
|
|
|
|
|
}),
|
|
|
|
|
],
|
2024-09-24 12:10:18 +05:30
|
|
|
})
|