code: function getPagesConfig(entry) {
    const pages = {}
    // 规范中定义每个单页文件结构
    // index.html,main.js,App.vue
    glob.sync(PAGE_PATH + '/*/main.js')
        .forEach(filePath => {
          const pageName = path.basename(path.dirname(filePath))
          if (entry && entry !== pageName) return
          pages[pageName] = {
            entry: filePath,
            // 除了首页，其他按第二级目录输出
            // 浏览器中直接访问/news,省去/news.html
            fileName: `${pageName === 'index' ? '' : pageName + '/'}index.html`,
            template: path.dirname(filePath) + '/index.html',
            chunks: ['vue-common', 'iview', 'echarts', 'vendors', 'manifest', pageName]
          }
        })
    return pages
  }
docs: const webpackPluginAutoRouter = require("@kuaizi/webpack-plugin-auto-router") 
  获取多页面配置对象