webpack-webgl-boilerplate
This is some boilerplate I wrote to easily start new WebGL projects without having to set up a build tool chain. It makes use of Babel and webgl-glsl-loader to compile JavaScript and GLSL together into a final JavaScript module.
Requirements
- npm
Install
- Download the latest release from the Releases page.
- Unzip the code to where you want your project to live.
- Run
npm install
to install dependencies.
Usage
The following commands are defined in package.json
:
npm run build
Build a production version of bundle.js
into dist/
.
npm run watch
Watch files in src/
for changes, recompile on change.
npm run dev
Run a development server at http://localhost:8080/
. This also will watch & recompile on file changes.
License
TODO
- Setup instructions
- Example of usage
- Better production builds