22 lines
476 B
TypeScript
22 lines
476 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import { fileURLToPath, URL } from "node:url";
|
|
|
|
export default defineConfig({
|
|
root: fileURLToPath(new URL(".", import.meta.url)),
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
"@coworker/core": fileURLToPath(new URL("../../packages/core/src", import.meta.url))
|
|
}
|
|
},
|
|
build: {
|
|
outDir: "dist",
|
|
emptyOutDir: true
|
|
},
|
|
server: {
|
|
port: 5173,
|
|
strictPort: true
|
|
}
|
|
});
|