Files
rubix-explore/vite.config.js

44 lines
996 B
JavaScript
Raw Normal View History

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:44:43 +05:30
"theme_color": "#150a29",
"background_color": "#150a29",
2024-10-15 19:28:32 +05:30
"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
})