mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-12 22:10:01 -04:00
enable optimize for size by default in release
This commit is contained in:
parent
d1318a4655
commit
4497455a01
2 changed files with 3 additions and 1 deletions
|
@ -13,7 +13,7 @@
|
|||
"build": "rspack build --mode production",
|
||||
"rewriter:build": "cd rewriter/wasm/ && bash build.sh && cd ../../",
|
||||
"dev": "node server.js",
|
||||
"prepack": "RELEASE=1 npm run rewriter:build && npm run build",
|
||||
"prepack": "OPTIMIZE_FOR_SIZE=1 RELEASE=1 npm run rewriter:build && npm run build",
|
||||
"pub": "npm publish --no-git-checks --access public",
|
||||
"format": "prettier --config .prettierrc.js --write .",
|
||||
"lint": "eslint ./src/",
|
||||
|
|
|
@ -14,6 +14,8 @@ if ! [[ "$(wasm-bindgen -V)" =~ ^"$WBG" ]]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
echo "FLAGS: RELEASE=${RELEASE:-0} OPTIMIZE_FOR_SIZE=${OPTIMIZE_FOR_SIZE:-0}"
|
||||
|
||||
if ! [ "${RELEASE:-0}" = "1" ]; then
|
||||
: "${WASMOPTFLAGS:=-g}"
|
||||
: "${FEATURES:=debug}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue