mirror of
https://github.com/revoltchat/revite.git
synced 2025-04-21 15:57:38 -05:00
Import assets and add PWA.
This commit is contained in:
parent
27eeb3acd2
commit
e7d1ada13d
59 changed files with 1958 additions and 182 deletions
|
@ -1,10 +1,38 @@
|
|||
import { resolve } from 'path'
|
||||
import { defineConfig } from 'vite'
|
||||
import preact from '@preact/preset-vite'
|
||||
import { VitePWA } from 'vite-plugin-pwa'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [preact()],
|
||||
plugins: [
|
||||
preact(),
|
||||
VitePWA({
|
||||
manifest: {
|
||||
name: "Revolt",
|
||||
short_name: "Revolt",
|
||||
description: "User-first, privacy-focused chat platform.",
|
||||
categories: ["messaging"],
|
||||
start_url: "/",
|
||||
display: "standalone",
|
||||
orientation: "portrait",
|
||||
background_color: "#101823",
|
||||
icons: [
|
||||
{
|
||||
"src": "/assets/icons/android-chrome-192x192.png",
|
||||
"type": "image/png",
|
||||
"sizes": "192x192"
|
||||
},
|
||||
{
|
||||
"src": "/assets/icons/android-chrome-512x512.png",
|
||||
"type": "image/png",
|
||||
"sizes": "512x512"
|
||||
}
|
||||
]
|
||||
},
|
||||
workbox: { }
|
||||
})
|
||||
],
|
||||
build: {
|
||||
rollupOptions: {
|
||||
input: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue