Install the trunk
bundler with
cargo install +locked trunk
In this folder, run
trunk serve
trunk
will serve the webpage at 127.0.0.1:8080
In this folder, run
trunk build --release
trunk
will populate the dist/
subfolder with assets.
If the site will be hosted at a non-root URL, then add --public-url
, e.g.
trunk build --release --public-url=/projects/fidget/constraints/
cargo run -pconstraints