Skip to content

Commit

Permalink
feat(pwa): cache all assets
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-berlin committed Feb 17, 2024
1 parent 72ce898 commit e66ddcd
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 95 deletions.
4 changes: 2 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default defineConfig({
mode: import.meta.env.DEV ? "development" : "production",
base: "/",
scope: "/",
includeAssets: ["favicons/favicon.ico"],
includeAssets: ["**/*"],
registerType: "autoUpdate",
manifest: {
name: "Berliner Schnauze",
Expand Down Expand Up @@ -82,7 +82,7 @@ export default defineConfig({
workbox: {
globDirectory: "dist",
navigateFallback: "/",
globPatterns: ["**/*.{js,css,svg,png,jpg,jpeg,gif,webp,avif,woff,woff2,ttf,eot,ico}"],
globPatterns: ["**/*"],
},
devOptions: {
enabled: false,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"@typescript-eslint/parser": "^7.0.1",
"@vite-pwa/astro": "^0.2.0",
"@vitejs/plugin-vue": "^5.0.4",
"@vitest/coverage-v8": "^1.2.2",
"@vitest/coverage-v8": "^1.3.0",
"@vue/compiler-sfc": "^3.4.19",
"@vue/devtools-api": "^6.6.1",
"@vue/test-utils": "^2.4.4",
Expand All @@ -96,7 +96,7 @@
"stylelint-config-recommended-scss": "^14.0.0",
"stylelint-config-standard": "^36.0.0",
"unplugin-icons": "^0.18.5",
"vitest": "^1.2.2",
"vitest": "^1.3.0",
"vue-tsc": "^1.8.27"
},
"dependencies": {
Expand Down
137 changes: 46 additions & 91 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e66ddcd

Please sign in to comment.