The requirejs-optimizer is part of the r.js adapter for Node and Rhino, and it is designed to be run as part of a build or packaging step after you are done with development and are ready to deploy the code for your users.
The requirejs-optimizer is part of the r.js adapter for node.js and rhino, and it is designed to be run as part of a build or packaging step after you are done with development and are ready to deploy the code for your users.
requirejs-optimizer has an optimization tool that does the following
- Combines related scripts together into build layers and minifies them via UglifyJS (the default) or Closure Compiler (an option when using Java).
- Optimizes css by inlining CSS files referenced by @import and removing comments.
Home Page: http://requirejs.org/docs/optimization.html