Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to build minified code ? #19

Open
navigator117 opened this issue Sep 25, 2017 · 2 comments
Open

how to build minified code ? #19

navigator117 opened this issue Sep 25, 2017 · 2 comments

Comments

@navigator117
Copy link

No description provided.

@ivanpopelyshev
Copy link
Collaborator

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

@zeachco
Copy link

zeachco commented Jun 12, 2019

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants