#!/bin/bash echo "Building Yew WASM Website..." # Check if trunk is installed if ! command -v trunk &> /dev/null; then echo "Trunk is not installed. Installing..." cargo install trunk fi # Build for development echo "Building for development..." trunk build echo "Build complete! Files are in the 'dist' directory." echo "To serve locally, run: trunk serve" echo "To build for production, run: trunk build --release"