-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from vishnuvinay89/v0.1.6
PWA implementation and Loader in language select component
- Loading branch information
Showing
7 changed files
with
8,493 additions
and
4,437 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,37 @@ | ||
import { defineConfig } from 'vite' | ||
import react from '@vitejs/plugin-react' | ||
import { VitePWA } from 'vite-plugin-pwa'; | ||
|
||
// https://vite.dev/config/ | ||
export default defineConfig({ | ||
plugins: [react()], | ||
plugins: [react(), | ||
VitePWA({ | ||
registerType: 'autoUpdate', // Automatically updates service workers | ||
includeAssets: ['favicon.ico'], //, 'robots.txt', 'apple-touch-icon.png' | ||
manifest: { | ||
name: 'E-Wallet', | ||
short_name: 'Wallet', | ||
description: 'E Wallet for Piramal', | ||
theme_color: '#ffffff', | ||
icons: [ | ||
{ | ||
src: 'favicon.ico', | ||
sizes: '192x192', | ||
type: 'image/png', | ||
}, | ||
{ | ||
src: 'favicon.ico', | ||
sizes: '512x512', | ||
type: 'image/png', | ||
}, | ||
{ | ||
src: 'favicon.ico', | ||
sizes: '512x512', | ||
type: 'image/png', | ||
purpose: 'any maskable', | ||
}, | ||
], | ||
}, | ||
}), | ||
], | ||
}) |