code: function logger(action = 'copy') {
    return through.obj(function (file, enc, cb) {
      const type = path.extname(file.path).slice(1).toLowerCase()
  
      // eslint-disable-next-line no-console
      console.log(`[${format(new Date(), 'yyyy-MM-dd HH:mm:ss').grey}] [${action.green} ${type.green}] ${'=>'.cyan} ${file.path}`)
  
      this.push(file)
      cb()
    })
  }
docs: 日志插件