docs: function deleteOldFiles(info, dir) {
      info.basenames.forEach((basename) => {
          const cwd = (() => {
              if (config.external_rearrange && config.external_rearrange.root) {
                  return path.join(__dirname, '..', config.external_rearrange.root, info.vender, dir);
              }
              return path.join(__dirname, '..', config.dir.src, config.dir.external, info.vender, dir);
          })();
          const target = info.rename ? info.rename : basename;
          glob.sync(target + '*', {
              cwd: cwd,
              nodir: true,
          }).forEach((file) => {
              const regexp = new RegExp(target + '(-[0-9]+.[0-9]+.[A-Za-z0-9_-]+)?([.-]min)?(.[a-zA-Z]+$)');
              if (regexp.exec(file)) {
                  fs.unlinkSync(path.join(cwd, file));
                  console.log('  removed: ' + file);
              }
          });
      });
  }