mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-05-25 04:17:13 +00:00
Added PWA functionality
This commit is contained in:
committed by
Ariful Alam
parent
fecce68262
commit
7c601dbea3
@@ -3,13 +3,14 @@ import react from '@vitejs/plugin-react';
|
||||
import tailwind from 'tailwindcss';
|
||||
import autoprefixer from 'autoprefixer';
|
||||
import tailwindConfig from './tailwind.config.mjs';
|
||||
import { VitePWA } from 'vite-plugin-pwa';
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
// 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>/'.
|
||||
base: '/gitprofile/',
|
||||
plugins: [react()],
|
||||
plugins: [react(), VitePWA({ registerType: 'autoUpdate' })],
|
||||
css: {
|
||||
postcss: {
|
||||
plugins: [tailwind(tailwindConfig), autoprefixer],
|
||||
|
||||
Reference in New Issue
Block a user