Here is the code for the inline demo in Oxidizing sourmash: WebAssembly post. It uses webpack to build a bundle in the dist/ directory.
You can also see this directory on GitHub
File list
- app.css CSS for the demo
- app.js The JS code driving the demo
- bootstrap.js Entry point for webpack (avoid async importing problems with Wasm, as suggested by the create-wasm-app project.
- dist/ The bundle files generated by webpack
- index.html This file
- package.json Lists our dependencies
- webpack.config.js Webpack config