52 lines
1.1 KiB
JavaScript
52 lines
1.1 KiB
JavaScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react-swc'
|
|
import { VitePWA } from 'vite-plugin-pwa'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
server: {
|
|
host: "0.0.0.0",
|
|
port: 3000, // You can use any port
|
|
},
|
|
plugins: [
|
|
react(),
|
|
VitePWA({
|
|
registerType: "autoUpdate",
|
|
devOptions: {
|
|
enabled: true,
|
|
},
|
|
manifest: {
|
|
name: "Rebix",
|
|
short_name: "RB",
|
|
description: "Join your community now",
|
|
start_url: "/",
|
|
display: "standalone",
|
|
theme_color: "#222935",
|
|
background_color: "#222935",
|
|
icons: [
|
|
{
|
|
src: "/icon-192x192.png",
|
|
sizes: "192x192",
|
|
type: "image/png",
|
|
},
|
|
{
|
|
src: "/icon-256x256.png",
|
|
sizes: "256x256",
|
|
type: "image/png",
|
|
},
|
|
{
|
|
src: "/icon-384x384.png",
|
|
sizes: "384x384",
|
|
type: "image/png",
|
|
},
|
|
{
|
|
src: "/icon-512x512.png",
|
|
sizes: "512x512",
|
|
type: "image/png",
|
|
},
|
|
],
|
|
},
|
|
}),
|
|
],
|
|
})
|