Skip to content

Commit

Permalink
chore: update service worker and vite config for PWA
Browse files Browse the repository at this point in the history
  • Loading branch information
aliakbar-deriv committed Jan 6, 2025
1 parent bcd3702 commit cea883a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
2 changes: 1 addition & 1 deletion dev-dist/sw.js

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

2 changes: 1 addition & 1 deletion dev-dist/sw.js.map

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

17 changes: 1 addition & 16 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export default defineConfig(({ mode }) => {
react(),
VitePWA({
registerType: 'prompt',
includeAssets: ['icons/*'],
strategies: 'generateSW',
manifest: {
id: '/copy-trading/',
Expand All @@ -28,21 +27,7 @@ export default defineConfig(({ mode }) => {
display: "standalone",
scope: "/copy-trading/",
background_color: "#ffffff",
theme_color: "#ff444f",
icons: [
{
src: "/copy-trading/assets/icons/icon-192x192.png",
sizes: "192x192",
type: "image/png",
purpose: "any maskable"
},
{
src: "/copy-trading/assets/icons/icon-512x512.png",
sizes: "512x512",
type: "image/png",
purpose: "any"
}
]
theme_color: "#ff444f"
},
injectRegister: 'auto',
devOptions: {
Expand Down

0 comments on commit cea883a

Please sign in to comment.