Compare commits
1 Commits
release-20
...
release-20
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3f08b5b54a |
@@ -30,11 +30,15 @@ jobs:
|
||||
npx @tailwindcss/cli -i input.css -o public/tailwind.css
|
||||
trunk build --release
|
||||
|
||||
# Manuel WASM Optimizasyonu (Trunk'ın yapamadığını biz yapıyoruz)
|
||||
# --all-features kullanarak tüm modern özellikleri tanımasını ve en küçük boyutu üretmesini sağlıyoruz.
|
||||
WASM_FILE=$(ls dist/*.wasm)
|
||||
echo "Optimizing $WASM_FILE..."
|
||||
# Manuel WASM Optimizasyonu
|
||||
WASM_FILE=$(ls dist/*.wasm | head -n 1)
|
||||
BEFORE=$(du -h "$WASM_FILE" | cut -f1)
|
||||
echo "Before optimization: $BEFORE"
|
||||
|
||||
wasm-opt --all-features -Oz "$WASM_FILE" -o "$WASM_FILE"
|
||||
|
||||
AFTER=$(du -h "$WASM_FILE" | cut -f1)
|
||||
echo "After optimization: $AFTER"
|
||||
echo "Optimization complete!"
|
||||
|
||||
- name: Build Backend (MIPS)
|
||||
|
||||
@@ -52,10 +52,3 @@ web-sys = { version = "0.3", features = [
|
||||
shared = { path = "../shared" }
|
||||
tailwind_fuse = "0.3.2"
|
||||
js-sys = "0.3.85"
|
||||
|
||||
[profile.release]
|
||||
opt-level = "z"
|
||||
lto = true
|
||||
codegen-units = 1
|
||||
panic = "abort"
|
||||
strip = true
|
||||
Reference in New Issue
Block a user