Skip to content

Commit

Permalink
First Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bryandino673 committed Apr 8, 2024
1 parent 0c5fc52 commit ab661da
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 12 deletions.
5 changes: 4 additions & 1 deletion power-pay-frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/svg+xml" href="/vite.svg">
<link rel="icon" href="/favicon.ico" sizes="any">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="manifest" href="/manifest.json">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
</head>
Expand Down
Binary file added power-pay-frontend/public/icon144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added power-pay-frontend/public/icon310x310.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added power-pay-frontend/public/icon36x36.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added power-pay-frontend/public/icon48x48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 39 additions & 11 deletions power-pay-frontend/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,51 @@
import { VitePWA } from 'vite-plugin-pwa'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { VitePWA } from 'vite-plugin-pwa';

export default defineConfig({
plugins: [react(),
plugins: [
react(),
VitePWA({
injectRegister: 'auto',
registerType: 'autoUpdate',
registerType: 'autoUpdate',
workbox: {
clientsClaim: true,
skipWaiting: true,
globPatterns: ['**/*.{ts,css,html,}']
globPatterns: ['**/*.{js,css,html,png,svg,ico}'],
},
devOptions: {
enabled: true,
type: 'module',
},
})
includeAssets: ['favicon.ico', 'apple-touch-icon.png', 'mask-icon.svg'],
manifest: {
name: 'PPA',
short_name: 'PPA',
theme_color: '#ffffff',
icons: [
{
src: '/public/icon36x36.png',
sizes: '36x36',
type: 'image/png',
},
{
src: '/public/icon48x48.png',
sizes: '48x48',
type: 'image/png',
},
{
src: '/public/icon310x310.png',
sizes: '310x310',
type: 'image/png',
purpose: 'any',
},
{
src: '/public/icon144x144.png',
sizes: '144x144',
type: 'image/png',
purpose: 'maskable',
},
],
},
}),
],
})
});

0 comments on commit ab661da

Please sign in to comment.