Here you can find the source code for my own personal website, built with React, Tailwind, Nextjs, TypeScript, and Emscripten.
Install the necessary development dependencies with:
npm install --include=devThen, you can build the website by running:
npm run buildOr for development:
npm run build-devThis will create a dist folder with the built files. You can then serve this folder with any static file server.
Install emsdk (already includes emcc/em++) and then run emsdk activate --permanent/--system
After that select the WebAssembly Build preset and use cmake as normal.