Skip to content

Commit 03ab1c5

Browse files
authored
chore(ui): add utility script to build react in dev mode (#2974)
* chore(ui): add utility script to build react in dev mode * chore: also update the ci build bin
1 parent 694b438 commit 03ab1c5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

scripts/ci-build-bin.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@ function deps() {
3838

3939
function web() {
4040
local install_cmd="npm i"
41+
local build_cmd="npm run build:dev"
4142
if [ "${CI:-}" = "true" ]; then
4243
install_cmd="npm ci"
44+
build_cmd="npm run build"
4345
fi
4446
(set -x; cd web && \
4547
$install_cmd && \
46-
npm run build)
48+
$build_cmd)
4749
}
4850

4951
function binary() {

web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"dev": "vite",
88
"build": "vite build",
9+
"build:dev": "NODE_ENV=development vite build",
910
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
1011
"lint-fix": "eslint \"src/**/*.{js,jsx,ts,tsx}\" --fix",
1112
"preview": "vite preview",

0 commit comments

Comments
 (0)