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
// noinspection JSUnusedGlobalSymbols
// Generated by unplugin-auto-import
// biome-ignore lint: disable
export { }
declare global {
const $DEVCOMP: (typeof import('solid-js'))['$DEVCOMP']

View File

@ -69,9 +69,9 @@
"unplugin-auto-import": "^0.18.3",
"uuid": "^10.0.0",
"vite": "^5.4.6",
"vite-plugin-pwa": "^0.20.1",
"vite-plugin-pwa": "^0.20.5",
"vite-plugin-solid": "^2.10.2",
"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: './',
build: { chunkSizeWarningLimit: 1000 },
resolve: { alias: { '~': '/src' } },
define: {
'import.meta.env.APP_VERSION': JSON.stringify(
process.env.npm_package_version,
),
},
plugins: [
solidPlugin(),
@ -23,6 +25,7 @@ export default defineConfig({
VitePWA({
registerType: 'autoUpdate',
includeAssets: ['favicon.svg'],
workbox: { maximumFileSizeToCacheInBytes: 5 * 1024 * 1024 },
manifest: {
icons: [
{