Run build before vite preview to avoid stale dist.
Adds prepreview hook so `npm run preview` always serves the latest production bundle. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
"prebuild": "npm run brand:export",
|
||||
"build": "tsc && vite build",
|
||||
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
||||
"prepreview": "npm run build",
|
||||
"preview": "vite preview",
|
||||
"deploy": "npm run build && gh-pages -d dist",
|
||||
"diagram:png": "node scripts/export-architecture.mjs --format=png",
|
||||
|
||||
Reference in New Issue
Block a user