Skip to content

Instantly share code, notes, and snippets.

@devgru
Created September 11, 2010 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devgru/575600 to your computer and use it in GitHub Desktop.
Save devgru/575600 to your computer and use it in GitHub Desktop.
process.nextTick(function () {
var contents = '';
tuple.contents.forEach(function (file) {
var oneFile = fs.readFileSync(sourcePath + file + '.js', 'utf-8');
if (debug)
contents += oneFile
else
contents += jsmin.jsmin(oneFile);
});
fs.writeFile(targetPath + tuple.name + '.js', contents, errbacker.create(log.error));
log.info('processed ' + tuple.name);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment