Skip to content

Commit 2a66df0

Browse files
committed
fix(build): clear build folder prior to new build
This should somewhat resolve #64
1 parent 90957e5 commit 2a66df0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"scripts": {
2121
"start": "cross-env PUBLIC_URL=/ craco start",
2222
"start:game": "cross-env IN_GAME_DEV=1 craco start",
23-
"build": "craco build",
23+
"build": "rimraf build && craco build",
2424
"test": "craco test",
2525
"eject": "react-scripts eject"
2626
},
@@ -45,5 +45,6 @@
4545
"devDependencies": {
4646
"@craco/craco": "^6.4.3",
4747
"cross-env": "^7.0.3",
48+
"rimraf": "^3.0.2"
4849
}
4950
}

0 commit comments

Comments
 (0)