layers
layers copied to clipboard
how to build minified code ?
Current build process of pixi-display doesnt include minification, sorry :( Any ideas on how to add it easy way?
@ivanpopelyshev when you build with tsc you could pipe with a minifier of your choice a second version of the file
an example with uglify-js
"postbuild": "uglifyjs lib/pixi-layers.js > lib/pixi-layers.min.js",
this would create a file alongside pixi-layers.js that is minified, just need to refer it in your package.json and decide if you want to default to be the minified version or not, consumers would still be able to point to pixi-layers/lib/pixi-layers or pixi-layers/lib/pixi-layers.min manually if they need to