From 7d4604cbafda9c669bdff97c509595a5e98665f3 Mon Sep 17 00:00:00 2001 From: pedrocx486 Date: Mon, 27 Jan 2025 22:34:16 -0300 Subject: [PATCH] Add build configs to client --- client/package.json | 4 +++- client/vite.config.ts | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/client/package.json b/client/package.json index f6bd625..219ad30 100644 --- a/client/package.json +++ b/client/package.json @@ -1,13 +1,15 @@ { "name": "rumor-party-line", - "version": "0.0.0", + "version": "1.0.0", "private": true, "type": "module", "scripts": { "start": "vite", "build": "run-p type-check \"build-only {@}\" --", + "build:subfolder": "run-p type-check \"build-only-subfolder {@}\" --", "preview": "vite preview", "build-only": "vite build", + "build-only-subfolder": "vite build --base=\\\"./\\\"\"", "type-check": "vue-tsc --build", "lint": "eslint . --fix", "format": "prettier --write src/" diff --git a/client/vite.config.ts b/client/vite.config.ts index 588eb96..ba91fab 100644 --- a/client/vite.config.ts +++ b/client/vite.config.ts @@ -12,6 +12,10 @@ export default defineConfig({ vueDevTools(), tailwindcss(), ], + build: { + outDir: '../server/static', + emptyOutDir: true, + }, resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url))