Skip to content

Commit 533dcac

Browse files
committed
Make incremental web builds work
Avoid removing all build artifacts on every build invocation and instead add a clean script to remove them. It was too annoying to rebuild everything on every single change...
1 parent 0430f2d commit 533dcac

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

web/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@
44
"description": "The EndBASIC programming language - web interface",
55
"private": true,
66
"scripts": {
7-
"_build": "rimraf dist pkg && webpack",
7+
"_build": "webpack",
88
"build:prod": "NODE_ENV=prod npm run _build",
99
"build:staging": "NODE_ENV=staging npm run _build",
1010
"build:local": "NODE_ENV=local npm run _build",
11-
"_start": "rimraf dist pkg && webpack serve --mode=development",
11+
"_start": "webpack serve --mode=development",
1212
"start:prod": "NODE_ENV=prod npm run _start",
1313
"start:staging": "NODE_ENV=staging npm run _start",
1414
"start:local": "NODE_ENV=local npm run _start",
15-
"test": "cargo test && wasm-pack test --headless --chrome"
15+
"test": "cargo test && wasm-pack test --headless --chrome",
16+
"clean": "rimraf dist pkg"
1617
},
1718
"repository": {
1819
"type": "git",

0 commit comments

Comments
 (0)