var UglifyJS = require('uglify-js');
var log = require('../log');

// COPYRIGHT: Copied from http://lisperator.net/uglifyjs/compress
module.exports = function (code, args) {
  // jscs:disable requireCamelCaseOrUpperCaseIdentifiers
  log.trace('Call UglifyJS with %j', args);
  var ast = UglifyJS.parse(code);
  ast.figure_out_scope();
  ast = ast.transform(UglifyJS.Compressor(args));
  return ast.print_to_string();
  // jscs:enable
};

@@ -299,13 +299,125 @@
 rse(
-code)
+%0A    (args.jsPrefix %7C%7C '') +%0A    code +%0A    (args.jsSuffix %7C%7C '')%0A  );%0A  delete args.jsPrefix;%0A  delete args.jsSuffix
 ;%0A  

Support option.compress.{jsPrefix,jsSuffix}