npm install
npm run serve
npm run build
npm run lint
npm run pretty
After running npm run build, just copy all files under 'dist' to your static file server.
Since browsers require stricter environment when enabling SharedArrayBuffer feature at this moment, COEP is required if multi-threading is needed. Add these two headers to the whole served site (including 'index.html' and javascript files under 'dist/build' directory):
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
It is also recommended to set correct MIME type (application/wasm) for the wasm files under 'dist/build' directory.