mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-12-27 19:44:12 +08:00
feat: add PWA support
This commit is contained in:
parent
597c25fa74
commit
a8c9c21898
@ -49,6 +49,7 @@
|
||||
"typescript": "^5.2.2",
|
||||
"uuid": "^9.0.0",
|
||||
"vite": "^4.4.9",
|
||||
"vite-plugin-pwa": "^0.16.4",
|
||||
"vite-plugin-solid": "^2.7.0",
|
||||
"zod": "^3.22.2"
|
||||
}
|
||||
|
2665
pnpm-lock.yaml
generated
2665
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -1,9 +1,14 @@
|
||||
import { defineConfig, splitVendorChunkPlugin } from 'vite'
|
||||
import { VitePWA } from 'vite-plugin-pwa'
|
||||
import solidPlugin from 'vite-plugin-solid'
|
||||
|
||||
export default defineConfig({
|
||||
base: './',
|
||||
build: { chunkSizeWarningLimit: 1000 },
|
||||
resolve: { alias: { '~': '/src' } },
|
||||
plugins: [solidPlugin(), splitVendorChunkPlugin()],
|
||||
plugins: [
|
||||
solidPlugin(),
|
||||
splitVendorChunkPlugin(),
|
||||
VitePWA({ registerType: 'autoUpdate' }),
|
||||
],
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user