A template for building javascript library using rollup.js
$ npm i
$ npm start
The starting point is the index.js
file.
$ npm run build
This builds the webpage for uploading, files are located in the dist/
folder.
$ npm run lib
This builds the library for importing, file are located in the lib/
folder.
Currently target src/WebGLAnimation.js
.
The built library path can be set in the package.json
under module
and browser
field.
If using any alias, make sure update the alias setup in the rollup.config.js
Includes *.vert
, *.frag
and *.glsl