Skip to content

Commit

Permalink
fix(ci): add outdir in viteconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihoub2 committed Sep 17, 2024
1 parent b9cbd91 commit f910f0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"build": "vite build",
"build": "vite build --emptyOutDir",
"dev": "vite",
"lint": "eslint src --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
Expand Down
4 changes: 4 additions & 0 deletions client/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ import path from "path";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), (visualizer as any).default() as PluginOption],
build: {
outDir: "../server/public",
emptyOutDir: true,
},
resolve: {
alias: {
"@": path.resolve(__dirname + "/src"),
Expand Down

0 comments on commit f910f0e

Please sign in to comment.