This is a simple, already configured, Webpack project that you can edit as you please. There isn't a rigid file structure in place, you can adapt it to your needs.
This was made for a university project with WebGL 2.
The small example included is taken from an exercise by @EricaStella93.
- 🔁 Auto-reloading web server (with HMR deactivated, didn't test it)
- ✨ GLSL files loader (your shaders get imported as string, the advantage is having syntax highlighting)
- 🛠 TWGL.js already included
- ✍️ Code formatter (Prettier) already setup
Requirements:
- Create a new repo from this template
- Clone your repo on your machine
cd
into your reponpm install
npm start
to start the web server
Done!
Your files should be inside src/
, your compiled web app is inside dist/
.