{"action":"closed","issue":{"url":"https://api.github.com/repos/vuejs/vue-cli/issues/1928","repository_url":"https://api.github.com/repos/vuejs/vue-cli","labels_url":"https://api.github.com/repos/vuejs/vue-cli/issues/1928/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue-cli/issues/1928/comments","events_url":"https://api.github.com/repos/vuejs/vue-cli/issues/1928/events","html_url":"https://github.com/vuejs/vue-cli/issues/1928","id":343914693,"node_id":"MDU6SXNzdWUzNDM5MTQ2OTM=","number":1928,"title":"Use dynamic imports in routes config","user":{"login":"LinusBorg","id":1444526,"node_id":"MDQ6VXNlcjE0NDQ1MjY=","avatar_url":"https://avatars3.githubusercontent.com/u/1444526?v=4","gravatar_id":"","url":"https://api.github.com/users/LinusBorg","html_url":"https://github.com/LinusBorg","followers_url":"https://api.github.com/users/LinusBorg/followers","following_url":"https://api.github.com/users/LinusBorg/following{/other_user}","gists_url":"https://api.github.com/users/LinusBorg/gists{/gist_id}","starred_url":"https://api.github.com/users/LinusBorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinusBorg/subscriptions","organizations_url":"https://api.github.com/users/LinusBorg/orgs","repos_url":"https://api.github.com/users/LinusBorg/repos","events_url":"https://api.github.com/users/LinusBorg/events{/privacy}","received_events_url":"https://api.github.com/users/LinusBorg/received_events","type":"User","site_admin":false},"labels":[{"id":304056336,"node_id":"MDU6TGFiZWwzMDQwNTYzMzY=","url":"https://api.github.com/repos/vuejs/vue-cli/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":852888989,"node_id":"MDU6TGFiZWw4NTI4ODg5ODk=","url":"https://api.github.com/repos/vuejs/vue-cli/labels/intend%20to%20implement","name":"intend to implement","color":"0052cc","default":false}],"state":"closed","locked":false,"assignee":{"login":"LinusBorg","id":1444526,"node_id":"MDQ6VXNlcjE0NDQ1MjY=","avatar_url":"https://avatars3.githubusercontent.com/u/1444526?v=4","gravatar_id":"","url":"https://api.github.com/users/LinusBorg","html_url":"https://github.com/LinusBorg","followers_url":"https://api.github.com/users/LinusBorg/followers","following_url":"https://api.github.com/users/LinusBorg/following{/other_user}","gists_url":"https://api.github.com/users/LinusBorg/gists{/gist_id}","starred_url":"https://api.github.com/users/LinusBorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinusBorg/subscriptions","organizations_url":"https://api.github.com/users/LinusBorg/orgs","repos_url":"https://api.github.com/users/LinusBorg/repos","events_url":"https://api.github.com/users/LinusBorg/events{/privacy}","received_events_url":"https://api.github.com/users/LinusBorg/received_events","type":"User","site_admin":false},"assignees":[{"login":"LinusBorg","id":1444526,"node_id":"MDQ6VXNlcjE0NDQ1MjY=","avatar_url":"https://avatars3.githubusercontent.com/u/1444526?v=4","gravatar_id":"","url":"https://api.github.com/users/LinusBorg","html_url":"https://github.com/LinusBorg","followers_url":"https://api.github.com/users/LinusBorg/followers","following_url":"https://api.github.com/users/LinusBorg/following{/other_user}","gists_url":"https://api.github.com/users/LinusBorg/gists{/gist_id}","starred_url":"https://api.github.com/users/LinusBorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinusBorg/subscriptions","organizations_url":"https://api.github.com/users/LinusBorg/orgs","repos_url":"https://api.github.com/users/LinusBorg/repos","events_url":"https://api.github.com/users/LinusBorg/events{/privacy}","received_events_url":"https://api.github.com/users/LinusBorg/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-07-24T07:21:57Z","updated_at":"2018-07-24T13:56:14Z","closed_at":"2018-07-24T13:56:14Z","author_association":"MEMBER","body":"### What problem does this feature solve?\r\nWe generally recommend to use code-splitting route components when writing apps with vue-router, but the code generated by vue-cli when selecting the router feature does use static imports.\r\n\r\nIn order to make users adopt per-route code-splitting, we should demonstrate the necessary code in the generated `router.js` file\r\n\r\n### What does the proposed API look like?\r\nRewriting static imports in [this file](https://github.com/vuejs/vue-cli/blob/dev/packages/%40vue/cli-service/generator/router/template/src/router.js) as dynamic imports.\r\n\r\n----\r\n\r\nI'll do a PR\r\n\r\n<!-- generated by vue-issues. DO NOT REMOVE -->"}}
{"actor":{"display_login":"yyx990803"}}