{"action":"closed","issue":{"url":"https://api.github.com/repos/umijs/umi/issues/1709","repository_url":"https://api.github.com/repos/umijs/umi","labels_url":"https://api.github.com/repos/umijs/umi/issues/1709/labels{/name}","comments_url":"https://api.github.com/repos/umijs/umi/issues/1709/comments","events_url":"https://api.github.com/repos/umijs/umi/issues/1709/events","html_url":"https://github.com/umijs/umi/issues/1709","id":394096538,"node_id":"MDU6SXNzdWUzOTQwOTY1Mzg=","number":1709,"title":"TypeError: Cannot read property 'list' of undefined","user":{"login":"PuShaoWei","id":18391791,"node_id":"MDQ6VXNlcjE4MzkxNzkx","avatar_url":"https://avatars2.githubusercontent.com/u/18391791?v=4","gravatar_id":"","url":"https://api.github.com/users/PuShaoWei","html_url":"https://github.com/PuShaoWei","followers_url":"https://api.github.com/users/PuShaoWei/followers","following_url":"https://api.github.com/users/PuShaoWei/following{/other_user}","gists_url":"https://api.github.com/users/PuShaoWei/gists{/gist_id}","starred_url":"https://api.github.com/users/PuShaoWei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PuShaoWei/subscriptions","organizations_url":"https://api.github.com/users/PuShaoWei/orgs","repos_url":"https://api.github.com/users/PuShaoWei/repos","events_url":"https://api.github.com/users/PuShaoWei/events{/privacy}","received_events_url":"https://api.github.com/users/PuShaoWei/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-12-26T06:49:03Z","updated_at":"2018-12-27T03:19:45Z","closed_at":"2018-12-27T03:19:45Z","author_association":"NONE","body":"`umi build` 后页面呈现空白\r\n\r\n控制台出现该问题，不太清楚此类问题排查路线，这是一个新项目配置\r\n\r\n另外有一个疑问，这样我的每个页面js 都打包进一个文件 `umi.js`，这样到最后会不会越来越大呢，还是说有某些异步加载这些资源到策略呀。。前端萌新 。。\r\n\r\n\r\n\r\n![image](https://user-images.githubusercontent.com/18391791/50435856-13f4f400-091e-11e9-8431-fda01840be38.png)\r\n\r\n\r\n\r\n\r\n```\r\nconst path = require('path')\r\n\r\nexport default {\r\n  base:'/',\r\n  // runtimePublicPath: true,\r\n  // publicPath: \"https://cdn/static/\",\r\n  exportStatic: {\r\n  }, // 资源编译静态化\r\n  theme: path.resolve(__dirname,\"./theme.js\"),\r\n  plugins: [\r\n    ['umi-plugin-react',{\r\n      // publicPath: \"http://yourcdn/path/to/static/\", 静态资源 CDN\r\n      dynamicImport: true,\r\n      hd:false,\r\n      antd:false,\r\n      locale:{\r\n        default: 'zh-CN',\r\n      },\r\n      title:{\r\n        defaultTitle: '主页应用',\r\n        format: '{current}{separator}{parent}',\r\n        separator: ' · '\r\n      },\r\n      metas: [\r\n        { charset: 'utf-8' },\r\n        { viewport: 'width=device-width,user-scalable=n' },\r\n      ],\r\n      scripts: [\r\n        { src: '//baidu.com/monitor.js' },\r\n        { content: `alert(1)` },\r\n      ],\r\n      targets: {\r\n        ie: 11,\r\n      },\r\n      fastClick: true,\r\n      dva:true,\r\n      routes: {\r\n        exclude: [\r\n          /model\\.(j|t)sx?$/,\r\n          /service\\.(j|t)sx?$/,\r\n          /models\\//,\r\n          /components\\//,\r\n          /services\\//,\r\n        ],\r\n      },\r\n    }]\r\n  ],\r\n  define: {\r\n\r\n  },\r\n  alias:{\r\n        config:path.resolve(__dirname),\r\n        components:path.resolve(__dirname,'../src/components'),\r\n        utils:path.resolve(__dirname,'../src/utils'),\r\n        services:path.resolve(__dirname,'../src/services'),\r\n        models:path.resolve(__dirname,'../src/models'),\r\n        themes:path.resolve(__dirname,'../src/themes'),\r\n        assets:path.resolve(__dirname,'../src/assets')\r\n  }\r\n};\r\n```"}}
{"actor":{"display_login":"PuShaoWei"}}