34 lines
753 B
TypeScript
34 lines
753 B
TypeScript
|
|
import { defineConfig } from 'vite'
|
||
|
|
import react from '@vitejs/plugin-react'
|
||
|
|
import { VitePWA } from 'vite-plugin-pwa'
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
plugins: [
|
||
|
|
react(),
|
||
|
|
VitePWA({
|
||
|
|
registerType: 'autoUpdate',
|
||
|
|
manifest: {
|
||
|
|
name: 'Elec',
|
||
|
|
short_name: 'Elec',
|
||
|
|
description: '多模型AI对话',
|
||
|
|
theme_color: '#000000',
|
||
|
|
background_color: '#000000',
|
||
|
|
display: 'standalone',
|
||
|
|
orientation: 'portrait',
|
||
|
|
icons: [
|
||
|
|
{
|
||
|
|
src: '/icon-192.png',
|
||
|
|
sizes: '192x192',
|
||
|
|
type: 'image/png'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
src: '/icon-512.png',
|
||
|
|
sizes: '512x512',
|
||
|
|
type: 'image/png'
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
})
|
||
|
|
]
|
||
|
|
})
|