Written with three.js.
Dev:
# install deps
yarn
# esbuild watcher
yarn dev
# visit localhost:8080 (separate terminal)
npx http-server
Build:
# minified esbuild
yarn build
Both yarn start
and yarn build
create a public/out.js
bundle.
public/
- static html/css + dev & build outputindex.html
- simple markupstyle.css
- simple stylesout.js
- bundle file fromyarn start
oryarn build
src/
- js to be bundledmain.ts
- entry for index.html