A minimal template for using yew.rs with tailwindcss!
- Routing
- Example component
- Custom font
- 404 page
- Clone the repo:
git clone https://github.com/snowstry/yew-tailwind-template
-
Get a prebuilt binary of tailwind from their official website. You can also use npm/yarn to globally install tailwindcss.
-
Install
trunk
,wasm-bindgen-cli
and webassembly target.
cargo install trunk
cargo install wasm-bindgen-cli
rustup target add wasm32-unknown-unknown
- Run
trunk serve