{"action":"created","issue":{"url":"https://api.github.com/repos/kaola-fed/megalo-aot/issues/11","repository_url":"https://api.github.com/repos/kaola-fed/megalo-aot","labels_url":"https://api.github.com/repos/kaola-fed/megalo-aot/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/kaola-fed/megalo-aot/issues/11/comments","events_url":"https://api.github.com/repos/kaola-fed/megalo-aot/issues/11/events","html_url":"https://github.com/kaola-fed/megalo-aot/issues/11","id":385185945,"node_id":"MDU6SXNzdWUzODUxODU5NDU=","number":11,"title":"建议 | 优化分包机制","user":{"login":"auven","id":23731087,"node_id":"MDQ6VXNlcjIzNzMxMDg3","avatar_url":"https://avatars1.githubusercontent.com/u/23731087?v=4","gravatar_id":"","url":"https://api.github.com/users/auven","html_url":"https://github.com/auven","followers_url":"https://api.github.com/users/auven/followers","following_url":"https://api.github.com/users/auven/following{/other_user}","gists_url":"https://api.github.com/users/auven/gists{/gist_id}","starred_url":"https://api.github.com/users/auven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auven/subscriptions","organizations_url":"https://api.github.com/users/auven/orgs","repos_url":"https://api.github.com/users/auven/repos","events_url":"https://api.github.com/users/auven/events{/privacy}","received_events_url":"https://api.github.com/users/auven/received_events","type":"User","site_admin":false},"labels":[{"id":1145368396,"node_id":"MDU6TGFiZWwxMTQ1MzY4Mzk2","url":"https://api.github.com/repos/kaola-fed/megalo-aot/labels/Priority:%20High","name":"Priority: High","color":"d93f0b","default":false},{"id":1145368646,"node_id":"MDU6TGFiZWwxMTQ1MzY4NjQ2","url":"https://api.github.com/repos/kaola-fed/megalo-aot/labels/Type:%20Enhancement","name":"Type: Enhancement","color":"1d76db","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":27,"created_at":"2018-11-20T11:35:42Z","updated_at":"2018-12-04T05:52:44Z","closed_at":"2018-11-30T09:55:56Z","author_association":"NONE","body":"### 建议将分包对应的`js`、`css`、`components`等资源文件打包进对应的分包文件夹，以减小主包的大小。\r\n![281542713422_ pic](https://user-images.githubusercontent.com/23731087/48771057-35e5d000-ecfb-11e8-894e-fd224ca3dac9.jpg)\r\n\r\n\r\n### 如下所示，构建工具将 packageA 的资源文件打包进了根路径下的 `static` 和 `components` 里，主包大小是 `456.5 KB`\r\n![261542713236_ pic_hd](https://user-images.githubusercontent.com/23731087/48770886-c243c300-ecfa-11e8-9ba9-cb09fc1ff7ef.jpg)\r\n\r\n### 然后我手动将 packageA 的资源文件移动到 packageA 文件夹里后，主包大小变为 `441.5 KB`\r\n![291542713659_ pic_hd](https://user-images.githubusercontent.com/23731087/48771093-4bf39080-ecfb-11e8-9b00-10c05d878c81.jpg)\r\n\r\n\r\n### 最好是能够将图片等文件也一并打包进XX包对应的文件夹里。"},"comment":{"url":"https://api.github.com/repos/kaola-fed/megalo-aot/issues/comments/443980462","html_url":"https://github.com/kaola-fed/megalo-aot/issues/11#issuecomment-443980462","issue_url":"https://api.github.com/repos/kaola-fed/megalo-aot/issues/11","id":443980462,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Mzk4MDQ2Mg==","user":{"login":"fengzilong","id":9125255,"node_id":"MDQ6VXNlcjkxMjUyNTU=","avatar_url":"https://avatars0.githubusercontent.com/u/9125255?v=4","gravatar_id":"","url":"https://api.github.com/users/fengzilong","html_url":"https://github.com/fengzilong","followers_url":"https://api.github.com/users/fengzilong/followers","following_url":"https://api.github.com/users/fengzilong/following{/other_user}","gists_url":"https://api.github.com/users/fengzilong/gists{/gist_id}","starred_url":"https://api.github.com/users/fengzilong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengzilong/subscriptions","organizations_url":"https://api.github.com/users/fengzilong/orgs","repos_url":"https://api.github.com/users/fengzilong/repos","events_url":"https://api.github.com/users/fengzilong/events{/privacy}","received_events_url":"https://api.github.com/users/fengzilong/received_events","type":"User","site_admin":false},"created_at":"2018-12-04T05:52:44Z","updated_at":"2018-12-04T05:52:44Z","author_association":"MEMBER","body":"已经修复了，等我解决了另一个问题再一起发个版"}}
{"actor":{"display_login":"fengzilong"}}