增加插件,自定义座右铭

This commit is contained in:
2025-12-20 22:47:03 +08:00
parent afab936d70
commit a7556418ae
18 changed files with 3078 additions and 122 deletions

View File

@@ -1,6 +1,7 @@
import path from 'path';
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { VitePWA } from 'vite-plugin-pwa';
export default defineConfig({
server: {
@@ -15,7 +16,27 @@ export default defineConfig({
}
}
},
plugins: [react()],
plugins: [
react(),
VitePWA({
injectRegister: null,
registerType: 'autoUpdate',
includeAssets: ['favicon.ico', 'apple-touch-icon.png', 'masked-icon.svg', 'wallpapers/*'],
manifest: {
name: 'AeroStart',
short_name: 'AeroStart',
description: 'A beautiful, fast, and customizable start page for your browser.',
theme_color: '#000000',
icons: [
{
src: 'favicon.ico',
sizes: '64x64 32x32 24x24 16x16',
type: 'image/x-icon'
}
]
}
})
],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),