From a9624dea9ab4f1d97727b5723ca1b5c624f5b56e Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 15 Sep 2023 14:08:50 -0500 Subject: [PATCH] package.json: empty outDir when building, add `yarn preview` --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b76450f88..191f2acb1 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ "scripts": { "start": "npx vite serve", "dev": "${npm_execpath} run start", - "build": "npx vite build", + "build": "npx vite build --emptyOutDir", + "preview": "npx vite preview", "audit:fix": "npx yarn-audit-fix", "manage:translations": "npx ts-node ./scripts/translationRunner.ts", "i18n": "rm -rf build tmp && npx cross-env NODE_ENV=production ${npm_execpath} run build && ${npm_execpath} manage:translations en",