Is there a way to shrink the overall size of mojito for production deployment?

I'm looking into deploying a mojito app on a rack mounted networking appliance. For a number of reasons, we need to limit the amount of space we use on the machine.

Out of the box, it looks like mojito takes up around 64M. If I re-install the node dependencies using npm install --production to leave out the devDependencies, it's around 52M.

Is there anything I can do to reduce the size? Is there an easy way to minify this? Is that recommended for server side javascript?

I recognize that this may be more of a node question than a mojito question, but any suggestions would be greatly appreciated.

2 Replies
  • As an additional note, I noticed that much of the space comes from YUI. Is there a way to configure mojito to run off of the minified yui files (on the server side) so the others can be removed?

  • Which version of YUI are you using? I believe 3.16 will include my pull request which will reduce the YUI NPM package from ~35mb to ~17mb.



Recent Posts

in Yahoo! Mojito