#!/bin/sh
wasm=dist/portfolio-*_bg.wasm
js=dist/portfolio-*.js
wasm-opt -O2 --fast-math --enable-simd $wasm -o $wasm
find dist/ \
  -name "*.js" -o \
  -name "*.pdf" -o \
  -name "*.ico" -o \
  -name "*.wasm" -o \
  -name "*.html" -o \
  -name "*.json" | parallel brotli -f
