import { defineConfig } from 'vite'; 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://.github.io/, for example your repository is at https://github.com/, set base to '/'. // If you are deploying to https://.github.io//, for example your repository is at https://github.com//, then set base to '//'. base: '/gitprofile/', 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: { postcss: { plugins: [tailwind(tailwindConfig), autoprefixer], }, }, });