tasks/grunt-htmlcompressor.js
function toParameter(val, key) {
    var str = '--' + key.replace(/([A-Z])/g, function(a) {
      return '-' +  a.toLowerCase();
    });

    return (val === true) ? [str] : [str, val];
  }
function toParameter(val, key) {
    var str = '--' + key.replace(/([A-Z])/g, function(a) {
      return '-' +  a.toLowerCase();
    });

    return (val === true) ? [str] : [str, val];
  }
Convert a pair of key/value to an array if the value is `true` only the key is kept  Example:  toParameter('lineBreak', 2) // => ['--line-break', 2]  toParameter('preserveComments', true) // => ['--preserve-comments']