23 lines
553 B
TypeScript
Executable File
23 lines
553 B
TypeScript
Executable File
import { defineConfig } from "vite";
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
import react from "@vitejs/plugin-react";
|
|
import { fileURLToPath } from "node:url";
|
|
import { dirname, resolve } from "node:path";
|
|
|
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
const libSource = resolve(__dirname, "../src");
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
resolve: {
|
|
alias: {
|
|
"@vimazing/the-last-startyper": libSource, // use source during dev
|
|
},
|
|
},
|
|
server: {
|
|
port: 5173,
|
|
open: true,
|
|
},
|
|
});
|
|
|