code: function printResult(result, isDeploy, isCompressed, prefix, fn) {
    const relpath = truncate(path.relative(process.cwd(), result.filepath));
  
    if ((result.type == 'js' || result.type == 'css') && isDeploy) {
      zlib.gzip(result.content, (err, buffer) => {
        if (err) return fn(err);
  
        const stat = fs.statSync(result.filepath);
        const bytes = stat.size;
        const over = bytes > recommendedFileSizeLimit;
        const overZipped = buffer.length > recommendedFileSizeLimit;
  
        print(chalk.green(`${chalk.green(prefix)} built and compressed ${strong(relpath)}`), 1);
        print(`[compressed size: ${chalk[over ? 'red' : 'green'](prettyBytes(bytes))}]`, 2 + prefix.length);
        print(`[gzipped size: ${chalk[overZipped ? 'red' : 'green'](prettyBytes(buffer.length))}]`, 2 + prefix.length);
        if (over || overZipped) {
          warn(
            `the output file exceeds the recommended ${strong(prettyBytes(recommendedFileSizeLimit))} size`,
            2 + prefix.length
          );
          print(
            'Consider splitting into smaller bundles to help improve browser startup execution time',
            2 + prefix.length
          );
        }
        fn();
      });
    } else {
      print(chalk.green(`${chalk.green(prefix)} built${isCompressed ? ' and compressed' : ''} ${strong(relpath)}`), 1);
      fn();
    }
  }
docs: Print 'result'
  @param {Object} result
  @param {Boolean} isDeploy
  @param {Boolean} isCompressed
  @param {String} prefix
  @param {Function} fn