pixijs / layers

Separate the z-hierarchy of your scene tree from its canonical structure.
https://pixijs.io/layers/docs/
MIT License
222 stars 57 forks source link

how to build minified code ? #19

Open navigator117 opened 6 years ago

ivanpopelyshev commented 6 years ago

Current build process of pixi-display doesnt include minification, sorry :( Any ideas on how to add it easy way?

zeachco commented 5 years ago

@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