@ -2,11 +2,36 @@ import { fileURLToPath, URL } from 'node:url'
|
||||
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import { VitePWA } from 'vite-plugin-pwa'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
vue(),
|
||||
VitePWA({
|
||||
manifest: {
|
||||
name: 'Anime',
|
||||
short_name: 'Anime',
|
||||
start_url: '/',
|
||||
theme_color: '#000000',
|
||||
icons: [
|
||||
{
|
||||
src: '/pwa-192x192.jpg',
|
||||
sizes: '192x192',
|
||||
type: 'image/jpeg',
|
||||
},
|
||||
{
|
||||
src: '/pwa-512x512.jpg',
|
||||
sizes: '512x512',
|
||||
type: 'image/jpeg',
|
||||
}
|
||||
]
|
||||
},
|
||||
devOptions: {
|
||||
enabled: true,
|
||||
},
|
||||
registerType: "autoUpdate",
|
||||
})
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
|
Reference in New Issue
Block a user