UNPKG

y3-app

Version:
24 lines (23 loc) 626 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getViteConfig = getViteConfig; function getViteConfig(projectType) { return `import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react-swc'; import tailwindcss from '@tailwindcss/vite'; import path from 'path'; // https://vite.dev/config/ export default defineConfig({ plugins: [react(), tailwindcss()], server: { port: 3000, strictPort: true, }, resolve: { alias: { '@': path.resolve(__dirname, './${projectType === 'fullstack' ? 'frontend' : 'src'}'), }, }, }); `; }