first commit
This commit is contained in:
17
examples/website/build.sh
Normal file
17
examples/website/build.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/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"
|
Reference in New Issue
Block a user