{"action":"created","issue":{"url":"https://api.github.com/repos/huoxiangdong/Blog/issues/25","repository_url":"https://api.github.com/repos/huoxiangdong/Blog","labels_url":"https://api.github.com/repos/huoxiangdong/Blog/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/huoxiangdong/Blog/issues/25/comments","events_url":"https://api.github.com/repos/huoxiangdong/Blog/issues/25/events","html_url":"https://github.com/huoxiangdong/Blog/issues/25","id":318812760,"number":25,"title":"webpack","user":{"login":"huoxiangdong","id":18095882,"avatar_url":"https://avatars3.githubusercontent.com/u/18095882?v=4","gravatar_id":"","url":"https://api.github.com/users/huoxiangdong","html_url":"https://github.com/huoxiangdong","followers_url":"https://api.github.com/users/huoxiangdong/followers","following_url":"https://api.github.com/users/huoxiangdong/following{/other_user}","gists_url":"https://api.github.com/users/huoxiangdong/gists{/gist_id}","starred_url":"https://api.github.com/users/huoxiangdong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huoxiangdong/subscriptions","organizations_url":"https://api.github.com/users/huoxiangdong/orgs","repos_url":"https://api.github.com/users/huoxiangdong/repos","events_url":"https://api.github.com/users/huoxiangdong/events{/privacy}","received_events_url":"https://api.github.com/users/huoxiangdong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-04-30T08:06:52Z","updated_at":"2018-05-07T07:29:03Z","closed_at":null,"author_association":"OWNER","body":"# PLUGIN\r\n\r\n- `webpack`就是完成一个又一个任务而完成整个打包构建过程\r\n- `make`是最开始的起点, `complie`就是编译任务点，`after-complie`是编译完成，`emit`是即将准备生成文件，`after-emit`是生成文件之后等\r\n- `compilation`，它继承于`compiler`，所以能拿到一切compiler的内容（所以你也会看到`webpack`的`options`），而且也有`plugin`函数来接入任务点"},"comment":{"url":"https://api.github.com/repos/huoxiangdong/Blog/issues/comments/386982381","html_url":"https://github.com/huoxiangdong/Blog/issues/25#issuecomment-386982381","issue_url":"https://api.github.com/repos/huoxiangdong/Blog/issues/25","id":386982381,"user":{"login":"huoxiangdong","id":18095882,"avatar_url":"https://avatars3.githubusercontent.com/u/18095882?v=4","gravatar_id":"","url":"https://api.github.com/users/huoxiangdong","html_url":"https://github.com/huoxiangdong","followers_url":"https://api.github.com/users/huoxiangdong/followers","following_url":"https://api.github.com/users/huoxiangdong/following{/other_user}","gists_url":"https://api.github.com/users/huoxiangdong/gists{/gist_id}","starred_url":"https://api.github.com/users/huoxiangdong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huoxiangdong/subscriptions","organizations_url":"https://api.github.com/users/huoxiangdong/orgs","repos_url":"https://api.github.com/users/huoxiangdong/repos","events_url":"https://api.github.com/users/huoxiangdong/events{/privacy}","received_events_url":"https://api.github.com/users/huoxiangdong/received_events","type":"User","site_admin":false},"created_at":"2018-05-07T07:29:03Z","updated_at":"2018-05-07T07:29:03Z","author_association":"OWNER","body":"- `loader`：能转换各类资源，并处理成对应模块的加载器。loader 间可以串行使用。\r\n- `chunk`：`code splitting`(代码分割) 后的产物，也就是按需加载的分块，装载了不同的 module\r\n- `plugin`：`webpack` 的插件实体"}}
{"actor":{"display_login":"huoxiangdong"}}