mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-11-25 15:29:54 +00:00
Added PWA functionality
This commit is contained in:
1 parent
fecce68262
commit
7c601dbea3
3 files changed
+4010
-3
No files matched your search
Generated
+4006
-1
File diff suppressed because it is too large.
Load diff
+2
-1
@@ -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",
|
||||||
|
|||||||
+2
-1
@@ -3,13 +3,14 @@ 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' })],
|
||||||
css: {
|
css: {
|
||||||
postcss: {
|
postcss: {
|
||||||
plugins: [tailwind(tailwindConfig), autoprefixer],
|
plugins: [tailwind(tailwindConfig), autoprefixer],
|
||||||
|
|||||||
Reference in new issue
Block a user