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

Already on GitHub? Sign in to your account

Add minified version #562

Closed
ricardoquesada opened this Issue Oct 2, 2012 · 3 comments

Comments

Projects
None yet
3 participants
Contributor

ricardoquesada commented Oct 2, 2012

cocos2d-html5 needs a minified version and non minified version too.
eg:

  • cocos2d.js (all files together)
  • cocos2d.min.js (all files together with uglifyjs )

Also, it would be great if that could be added in a Makefile file.
Sample (taken from Chipmunk-JS) project:
https://github.com/josephg/Chipmunk-js/blob/master/Makefile

Uflifyjs homepage:
https://github.com/mishoo/UglifyJS

The workflow would be the following:

  • You modify CCSprite.js... and then what you have to do is type:
    $ make
    and it will generate the cocos2d.js file.
Contributor

linshun commented Oct 3, 2012

It has minified version engine file currently. Please go to cocos2d directory, and then type "ant" in your console. It will packaged a minified files of "Cocos2d-html5-v2.0.min.js" in ../lib path.

It will improve the loading while the file size of cocos2d.js is small. So we would like to package the engine files to another single file.

@ghost

ghost commented Oct 3, 2012

Thanks!
I didn't know that :)

On 2 October 2012 22:21, SeanLin notifications@github.com wrote:

It has minified version engine file currently. Please go to cocos2d
directory, and then type "ant" in your console. It will packaged a minified
files of "Cocos2d-html5-v2.0.min.js" in ../lib path.

It will improve the loading while the file size of cocos2d.js is small. So
we would like to package the engine files to another single file.


Reply to this email directly or view it on GitHubhttps://github.com/cocos2d/cocos2d-html5/issues/562#issuecomment-9096073.

Contributor

ricardoquesada commented Oct 3, 2012

Thanks!
I didn't know that :)
(I replied from my email, that's why the previous message was "authored" by cocos2d)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment