UNPKG

create-onetech-app

Version:

CLI to quickly set up React projects with popular templates and tools.

27 lines (24 loc) 588 B
import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; import tailwindcss from "@tailwindcss/vite"; import { fileURLToPath } from "url"; import path from "path"; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); // https://vite.dev/config/ export default defineConfig({ plugins: [react(), tailwindcss()], resolve: { alias: { "@": path.resolve(__dirname, "app"), }, }, server: { port: 3000, host: true, }, preview: { port: 3000, host: true, }, });