package.json: empty outDir when building, add `yarn preview`

environments/review-vite-sw2-fx5w6x/deployments/3834
Alex Gleason 1 year ago
parent 1c7b95f12a
commit a9624dea9a
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

@ -19,7 +19,8 @@
"scripts": { "scripts": {
"start": "npx vite serve", "start": "npx vite serve",
"dev": "${npm_execpath} run start", "dev": "${npm_execpath} run start",
"build": "npx vite build", "build": "npx vite build --emptyOutDir",
"preview": "npx vite preview",
"audit:fix": "npx yarn-audit-fix", "audit:fix": "npx yarn-audit-fix",
"manage:translations": "npx ts-node ./scripts/translationRunner.ts", "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", "i18n": "rm -rf build tmp && npx cross-env NODE_ENV=production ${npm_execpath} run build && ${npm_execpath} manage:translations en",

Loading…
Cancel
Save