michaeldll / threejs-treeshake

Testing ThreeJS treeshaking

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hunter-gatherer boilerplate

A Typescript and WebGL boilerplate. As barebones I'm willing to go.

Featuring:

  • Live reload
  • Typescript, GLSL and SASS support
  • Few dependencies and fast build times thanks to esbuild

How to develop :

npm i && npm run dev

By default, this will serve public/index.html using bundled public/built/app.js and public/built/scss/.
These are built from /src/app.ts and the server is hosted on localhost:1234.
Assets need to be fetched from the /public folder.

These values are configurable in watch.mjs and through the <script/> tag in index.html.

How to deploy

npm run build

This minifies files and shaders. You can then deploy the public folder.

Settings are available in build.mjs

About

Testing ThreeJS treeshaking

License:MIT License


Languages

Language:TypeScript 44.2%Language:JavaScript 32.2%Language:HTML 13.0%Language:SCSS 10.6%