{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs-templates/webpack/issues/10","labels_url":"https://api.github.com/repos/vuejs-templates/webpack/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/vuejs-templates/webpack/issues/10/comments","events_url":"https://api.github.com/repos/vuejs-templates/webpack/issues/10/events","html_url":"https://github.com/vuejs-templates/webpack/issues/10","id":128139846,"number":10,"title":"Css are embeded in the production build","user":{"login":"DarKDinDoN","id":1687854,"avatar_url":"https://avatars.githubusercontent.com/u/1687854?v=3","gravatar_id":"","url":"https://api.github.com/users/DarKDinDoN","html_url":"https://github.com/DarKDinDoN","followers_url":"https://api.github.com/users/DarKDinDoN/followers","following_url":"https://api.github.com/users/DarKDinDoN/following{/other_user}","gists_url":"https://api.github.com/users/DarKDinDoN/gists{/gist_id}","starred_url":"https://api.github.com/users/DarKDinDoN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarKDinDoN/subscriptions","organizations_url":"https://api.github.com/users/DarKDinDoN/orgs","repos_url":"https://api.github.com/users/DarKDinDoN/repos","events_url":"https://api.github.com/users/DarKDinDoN/events{/privacy}","received_events_url":"https://api.github.com/users/DarKDinDoN/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-22T11:44:44Z","updated_at":"2016-01-22T19:12:40Z","closed_at":"2016-01-22T17:17:22Z","body":"Since the last few commits, the css are embeded in the JS files.\r\nThis happens only with the vue-router lazy-load method :\r\n\r\n ```javascript\r\n// This works fine, css are extracted.\r\nrouter.map({\r\n  '/guest': {\r\n    name: 'login',\r\n    component: require('containers/Guest/Guest')\r\n  }\r\n})\r\n\r\n// This doesn't work, css are extracted but also remains in the JS chunk\r\nrouter.map({\r\n'/guest': {\r\n    name: 'login',\r\n    component: function (resolve) {\r\n      require(['containers/Guest/Guest'], resolve)\r\n    }\r\n})\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/vuejs-templates/webpack/issues/comments/174015536","html_url":"https://github.com/vuejs-templates/webpack/issues/10#issuecomment-174015536","issue_url":"https://api.github.com/repos/vuejs-templates/webpack/issues/10","id":174015536,"user":{"login":"DarKDinDoN","id":1687854,"avatar_url":"https://avatars.githubusercontent.com/u/1687854?v=3","gravatar_id":"","url":"https://api.github.com/users/DarKDinDoN","html_url":"https://github.com/DarKDinDoN","followers_url":"https://api.github.com/users/DarKDinDoN/followers","following_url":"https://api.github.com/users/DarKDinDoN/following{/other_user}","gists_url":"https://api.github.com/users/DarKDinDoN/gists{/gist_id}","starred_url":"https://api.github.com/users/DarKDinDoN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarKDinDoN/subscriptions","organizations_url":"https://api.github.com/users/DarKDinDoN/orgs","repos_url":"https://api.github.com/users/DarKDinDoN/repos","events_url":"https://api.github.com/users/DarKDinDoN/events{/privacy}","received_events_url":"https://api.github.com/users/DarKDinDoN/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T19:12:40Z","updated_at":"2016-01-22T19:12:40Z","body":"Still the same with `vue-loader-style` removed.\r\n\r\nEach chunk contains the required CSS. Even if the CSS code is exactly the same."}}