code: function (srcDir, entryDir, isMultiDevice = false) {
      let _this = this;
      let map = {};
      if (isMultiDevice) {
        //适配多端，强制规定只能带有h5跟pc目录
        map = {
          "h5": {},
          "pc": {}
        };
      }
      let jsDir = path.resolve(srcDir, 'scripts');
      entryDir = path.resolve(jsDir, entryDir);
      this.getAllFiles(entryDir, isMultiDevice);
      for (let dir in _this.entryFiles) {
        let name = _this.entryFiles[dir];
        let m = name.match(/(.+)\.js$/);
        let entry = m ? m[1] : '';
        let entryPath = dir;
        let paths = [];
        paths.push(entryPath);
        if (entry) {
          if (!isMultiDevice) //不适配pc跟h5
            map[entry] = paths;
          else {
            if (dir.indexOf("h5/") > -1) {
              let entryKey = dir.substring(dir.indexOf("h5/"), dir.indexOf(".js"))
              map["h5"][entryKey] = paths;
            } else if (dir.indexOf("pc/") > -1) {
              let entryKey = dir.substring(dir.indexOf("pc/"), dir.indexOf(".js"))
              map["pc"][entryKey] = paths;
            }
          }
        }
      }
      _this.entryMap = map;
      return map;
    }
docs: 获取所有的入口文件map