build/utils/write.js
function write (dest, code) {
  return new Promise(function (resolve, reject) {
    fs.writeFile(dest, code, function (err) {
      if (err) return reject(err)
      // console.log(blue(dest) + ' ' + getSize(code))
      resolve(code)
    })
  })
}
function write (dest, code) {
  return new Promise(function (resolve, reject) {
    fs.writeFile(dest, code, function (err) {
      if (err) return reject(err)
      // console.log(blue(dest) + ' ' + getSize(code))
      resolve(code)
    })
  })
}
const { blue } = require('./log.js')