chore: bump vite-plugin-pwa

This commit is contained in:
kunish 2024-09-19 21:31:28 +08:00
parent 95970e2330
commit 5960ef236d
No known key found for this signature in database
GPG Key ID: 67D3ACD788F3A7CD
4 changed files with 3864 additions and 1377 deletions

1
auto-imports.d.ts vendored
View File

@ -3,6 +3,7 @@
// @ts-nocheck // @ts-nocheck
// noinspection JSUnusedGlobalSymbols // noinspection JSUnusedGlobalSymbols
// Generated by unplugin-auto-import // Generated by unplugin-auto-import
// biome-ignore lint: disable
export { } export { }
declare global { declare global {
const $DEVCOMP: (typeof import('solid-js'))['$DEVCOMP'] const $DEVCOMP: (typeof import('solid-js'))['$DEVCOMP']

View File

@ -69,9 +69,9 @@
"unplugin-auto-import": "^0.18.3", "unplugin-auto-import": "^0.18.3",
"uuid": "^10.0.0", "uuid": "^10.0.0",
"vite": "^5.4.6", "vite": "^5.4.6",
"vite-plugin-pwa": "^0.20.1", "vite-plugin-pwa": "^0.20.5",
"vite-plugin-solid": "^2.10.2", "vite-plugin-solid": "^2.10.2",
"zod": "^3.23.8" "zod": "^3.23.8"
}, },
"packageManager": "pnpm@9.7.1" "packageManager": "pnpm@9.10.0"
} }

File diff suppressed because it is too large Load Diff

View File

@ -7,11 +7,13 @@ export default defineConfig({
base: './', base: './',
build: { chunkSizeWarningLimit: 1000 }, build: { chunkSizeWarningLimit: 1000 },
resolve: { alias: { '~': '/src' } }, resolve: { alias: { '~': '/src' } },
define: { define: {
'import.meta.env.APP_VERSION': JSON.stringify( 'import.meta.env.APP_VERSION': JSON.stringify(
process.env.npm_package_version, process.env.npm_package_version,
), ),
}, },
plugins: [ plugins: [
solidPlugin(), solidPlugin(),
@ -23,6 +25,7 @@ export default defineConfig({
VitePWA({ VitePWA({
registerType: 'autoUpdate', registerType: 'autoUpdate',
includeAssets: ['favicon.svg'], includeAssets: ['favicon.svg'],
workbox: { maximumFileSizeToCacheInBytes: 5 * 1024 * 1024 },
manifest: { manifest: {
icons: [ icons: [
{ {