fix: make deployment use uptmized wasm builds

This commit is contained in:
Jet Pham 2026-03-05 10:11:53 -08:00
parent 56f8e05ae0
commit e942fce4b4
No known key found for this signature in database

View file

@ -23,6 +23,7 @@
buildPhase = '' buildPhase = ''
export HOME=$TMPDIR export HOME=$TMPDIR
cd cgol && wasm-pack build --release --target web && cd .. cd cgol && wasm-pack build --release --target web && cd ..
wasm-opt cgol/pkg/cgol_bg.wasm -o cgol/pkg/cgol_bg.wasm -O4 --enable-bulk-memory --enable-nontrapping-float-to-int --enable-sign-ext --low-memory-unused --converge
npm ci npm ci
npm run build npm run build
''; '';