mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-05-25 12:27:17 +00:00
Merge pull request #376 from arifszn/PWA
Install as Progressive Web App
This commit is contained in:
@@ -64,6 +64,7 @@
|
|||||||
✓ [Google Analytics](#google-analytics)
|
✓ [Google Analytics](#google-analytics)
|
||||||
✓ [Hotjar](#hotjar)
|
✓ [Hotjar](#hotjar)
|
||||||
✓ [SEO](#seo)
|
✓ [SEO](#seo)
|
||||||
|
✓ [PWA](#pwa)
|
||||||
✓ [Avatar and Bio](#avatar-and-bio)
|
✓ [Avatar and Bio](#avatar-and-bio)
|
||||||
✓ [Social Links](#social-links)
|
✓ [Social Links](#social-links)
|
||||||
✓ [Skill Section](#skills)
|
✓ [Skill Section](#skills)
|
||||||
@@ -442,6 +443,12 @@ const config = {
|
|||||||
|
|
||||||
Meta tags will be auto-generated from configs dynamically. However, you can also manually add meta tags in `public/index.html`.
|
Meta tags will be auto-generated from configs dynamically. However, you can also manually add meta tags in `public/index.html`.
|
||||||
|
|
||||||
|
### PWA
|
||||||
|
|
||||||
|
GitProfile is PWA enabled. The site can be installed as a Progressive Web App.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
### Avatar and Bio
|
### Avatar and Bio
|
||||||
|
|
||||||
Your avatar and bio will be fetched from GitHub automatically.
|
Your avatar and bio will be fetched from GitHub automatically.
|
||||||
|
|||||||
4485
package-lock.json
generated
4485
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -59,7 +59,8 @@
|
|||||||
"react-hotjar": "^6.1.0",
|
"react-hotjar": "^6.1.0",
|
||||||
"react-icons": "^4.3.1",
|
"react-icons": "^4.3.1",
|
||||||
"tailwindcss": "^3.0.23",
|
"tailwindcss": "^3.0.23",
|
||||||
"vite": "^4.0.3"
|
"vite": "^4.0.3",
|
||||||
|
"vite-plugin-pwa": "^0.14.4"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"git-profile",
|
"git-profile",
|
||||||
|
|||||||
@@ -3,13 +3,32 @@ import react from '@vitejs/plugin-react';
|
|||||||
import tailwind from 'tailwindcss';
|
import tailwind from 'tailwindcss';
|
||||||
import autoprefixer from 'autoprefixer';
|
import autoprefixer from 'autoprefixer';
|
||||||
import tailwindConfig from './tailwind.config.mjs';
|
import tailwindConfig from './tailwind.config.mjs';
|
||||||
|
import { VitePWA } from 'vite-plugin-pwa';
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
// If you are deploying to https://<USERNAME>.github.io/, set base to '/'.
|
// If you are deploying to https://<USERNAME>.github.io/, set base to '/'.
|
||||||
// If you are deploying to https://<USERNAME>.github.io/<REPO>/, for example your repository is at https://github.com/<USERNAME>/<REPO>, then set base to '/<REPO>/'.
|
// If you are deploying to https://<USERNAME>.github.io/<REPO>/, for example your repository is at https://github.com/<USERNAME>/<REPO>, then set base to '/<REPO>/'.
|
||||||
base: '/gitprofile/',
|
base: '/gitprofile/',
|
||||||
plugins: [react()],
|
plugins: [
|
||||||
|
react(),
|
||||||
|
VitePWA({
|
||||||
|
registerType: 'autoUpdate',
|
||||||
|
includeAssets: ['logo.png'],
|
||||||
|
manifest: {
|
||||||
|
name: 'Portfolio',
|
||||||
|
short_name: 'Portfolio',
|
||||||
|
description: 'Personal Portfolio',
|
||||||
|
icons: [
|
||||||
|
{
|
||||||
|
src: 'logo.png',
|
||||||
|
sizes: '64x64 32x32 24x24 16x16 192x192 512x512',
|
||||||
|
type: 'image/png',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
],
|
||||||
css: {
|
css: {
|
||||||
postcss: {
|
postcss: {
|
||||||
plugins: [tailwind(tailwindConfig), autoprefixer],
|
plugins: [tailwind(tailwindConfig), autoprefixer],
|
||||||
|
|||||||
Reference in New Issue
Block a user