async function buildFromConfig(options) {
  const build = await executeBuildEntry(options)

  if (!build.isDev) {
    const zipResult = zlib.gzipSync(build.code)
    console.log(
      'Build output: ',
      chalk.blue(path.relative(process.cwd(), build.path)),
      ' ',
      chalk.green.bold(getSize(build.code)),
      `| ${chalk.green.bold(getSize(zipResult))} gzipped`
    )
  } else {
    console.log(
      'Build output: ',
      chalk.blue(path.relative(process.cwd(), build.path)),
      ' ',
      chalk.green.bold(getSize(build.code))
    )
  }
}
Write build output to disk and log its size
@param {*} options Build options