Skip to content

Commit

Permalink
Add most used functions of cssmin for use as a node.js module
Browse files Browse the repository at this point in the history
  • Loading branch information
au-phiware committed Apr 15, 2012
1 parent 6e2bc23 commit 72d99cd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ports/js/cssmin.node.js
@@ -0,0 +1,11 @@
/**
* node.js
* Author: Corin Lawson - https://github.com/au-phiware
* This is a wrapper of cssmin.js, suitable for use in Node.js.
* Permission is hereby granted to do what you you see fit.
*/
(function() {
eval(String(require('fs').readFileSync(__dirname + '/cssmin.js')));
exports.compressor = YAHOO.compressor;
exports.cssmin = function () { return YAHOO.compressor.cssmin.apply(YAHOO.compressor, arguments); };
})();

0 comments on commit 72d99cd

Please sign in to comment.