Skip to content

Commit

Permalink
PWA manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
Keywos committed Jan 28, 2024
1 parent 32de8d1 commit 11693a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sub-store-front-end",
"version": "2.14.106",
"version": "2.14.107",
"private": true,
"scripts": {
"dev": "vite --host",
Expand Down
8 changes: 4 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
name: 'Sub Store',
short_name: 'Sub Store',
description: 'A sub-converter running in a Progressive Web App',
theme_color: '#121212',
background_color: '#121212',
id: '/',
start_url: '/',
scope: '/',
Expand Down Expand Up @@ -94,9 +92,11 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
],
},
workbox: {
navigateFallbackDenylist: [/(^|\/.+)\/(api|download)\/.+/],
// globPatterns: ['**/*.{css,js,gz,eot,html,svg,png,ico,ttf,woff2}'],
runtimeCaching: [
{
urlPattern: /^https?:\/\/.+?\/(?:api|download)\/.+/,
handler: "NetworkOnly",
},
{
urlPattern: /.*\.(?:js|css|gz|html|json)/i, // json
handler: 'CacheFirst',
Expand Down

0 comments on commit 11693a3

Please sign in to comment.