mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-10 04:22:27 +10:00
31 lines
657 B
TypeScript
31 lines
657 B
TypeScript
/// <reference types='vitest' />
|
|
|
|
import { nxViteTsPaths } from "@nx/vite/plugins/nx-tsconfig-paths.plugin";
|
|
import react from "@vitejs/plugin-react-swc";
|
|
import { defineConfig, searchForWorkspaceRoot } from "vite";
|
|
|
|
export default defineConfig({
|
|
base: "/artboard/",
|
|
|
|
cacheDir: "../../node_modules/.vite/artboard",
|
|
|
|
build: {
|
|
sourcemap: true,
|
|
emptyOutDir: true,
|
|
},
|
|
|
|
server: {
|
|
host: true,
|
|
port: 6173,
|
|
fs: { allow: [searchForWorkspaceRoot(process.cwd())] },
|
|
},
|
|
|
|
plugins: [react(), nxViteTsPaths()],
|
|
|
|
resolve: {
|
|
alias: {
|
|
"@/artboard/": `${searchForWorkspaceRoot(process.cwd())}/apps/artboard/src/`,
|
|
},
|
|
},
|
|
});
|