Skip to content
Quin Kennedy edited this page Mar 17, 2020 · 1 revision

Welcome to the spacebrew.js wiki!

Minification

To minify the library, I suggest using the following command in the library directory (requires Node.js, and thus NPM, to be installed):

npx terser -c -m -o sb-[version].min.js -- sb-[version].js

for example:

npx terser -c -m -o sb-1.4.2.min.js -- sb-1.4.2.js

Don't forget to update all examples with the new version of the library

Clone this wiki locally