docs: function dir2config(dir) {
          var _configItems = []
          var _cwdName = path.resolve(dir) === process.cwd()? 'global': path.basename(dir)
          var _files = glob.sync(dir+'+(*.png|*.jpg|*.gif)', {
              cwd: path.join(process.cwd(), spriteSrcDIR),
              nodir: true
          })
          if(_files.length === 0){return _configItems}
  
          var splitRst = splitByRule(_files)
          _configItems = splitRst.map(function (e) {
              var _sprite_suffix = (e.dest==='@1x'?'':e.dest)
              var _sprite_dest = path.join(process.cwd(), spriteDestDIR, _cwdName + _sprite_suffix)
              var _sprite_src = e.src.map(function (ee) {
                  return path.join(process.cwd(), spriteSrcDIR, ee)
              })
              var _sprite_format = path.extname(_sprite_src[0]).substr(1)
              return formatSpriteSmithCfg(_sprite_dest, _sprite_src, _sprite_format)
          })
          return _configItems
      }