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/, 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' })], css: { postcss: { plugins: [tailwind(tailwindConfig), autoprefixer], }, }, });