Skip to content

Latest commit

 

History

History
56 lines (39 loc) · 1.19 KB

README.md

File metadata and controls

56 lines (39 loc) · 1.19 KB

Elm vs Yew

DemoArticle


About

This is a demo showcasing the rendering performance of two frontend frameworks, Elm and Yew.

You can either run the whole demo, or run each single app separately. Please note that in order to run the Yew app, you need a browser that supports WASM.

Usage

First of all, install the required dependencies

yarn
cd elm && yarn && cd -
cd yew && yarn && cd -

For the yew app, you need wasm-pack and you need to add wasm32-unknown-unknown to your rust toolchain:

rustup target add wasm32-unknown-unknown

Serve locally

Bundle the two apps and serve them on a single page, available at http://localhost:10000

./make.sh serve

Build

Create the production build inside dist/ folder

./make.sh build

Create the production build with a custom publicPath for the Yew app:

YEW_PUBLIC_PATH="/custom/yew/" ./make.sh build