layers icon indicating copy to clipboard operation
layers copied to clipboard

how to build minified code ?

Open navigator117 opened this issue 8 years ago • 2 comments

navigator117 avatar Sep 25 '17 05:09 navigator117

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

ivanpopelyshev avatar Sep 26 '17 12:09 ivanpopelyshev

@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

zeachco avatar Jun 12 '19 19:06 zeachco