{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/extract-text-webpack-plugin/issues/106","repository_url":"https://api.github.com/repos/webpack/extract-text-webpack-plugin","labels_url":"https://api.github.com/repos/webpack/extract-text-webpack-plugin/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/webpack/extract-text-webpack-plugin/issues/106/comments","events_url":"https://api.github.com/repos/webpack/extract-text-webpack-plugin/issues/106/events","html_url":"https://github.com/webpack/extract-text-webpack-plugin/issues/106","id":105070595,"number":106,"title":"Extract Text plugin does not work with async required files","user":{"login":"geekyme","id":977460,"avatar_url":"https://avatars.githubusercontent.com/u/977460?v=3","gravatar_id":"","url":"https://api.github.com/users/geekyme","html_url":"https://github.com/geekyme","followers_url":"https://api.github.com/users/geekyme/followers","following_url":"https://api.github.com/users/geekyme/following{/other_user}","gists_url":"https://api.github.com/users/geekyme/gists{/gist_id}","starred_url":"https://api.github.com/users/geekyme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geekyme/subscriptions","organizations_url":"https://api.github.com/users/geekyme/orgs","repos_url":"https://api.github.com/users/geekyme/repos","events_url":"https://api.github.com/users/geekyme/events{/privacy}","received_events_url":"https://api.github.com/users/geekyme/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-06T04:35:53Z","updated_at":"2016-05-07T13:55:53Z","closed_at":null,"body":"Use case: \r\n\r\nsell.js\r\n```\r\nrequire.ensure([], (require) => {\r\n      SellForm = require(\"../../sell/sell-form\");\r\n});\r\n.....\r\n```\r\n\r\nsell-form\r\n```\r\nimport \"child\" from \"./child\"\r\n```\r\n\r\nchild\r\n```\r\nrequire(\"cropper/dist/cropper.css\");\r\n```\r\n\r\n\r\nWebpack: \r\n```\r\n...\r\nmodule: {\r\n    loaders: [\r\n      { test: /\\.js$/, exclude: /node_modules/, loaders: [strip.loader(\"debug\"), \"babel\"] },\r\n      { test: /\\.css$/, loader: ExtractTextPlugin.extract(\"style\", \"css!autoprefixer?{browsers:['last 2 version', '> 1%']}\") }\r\n    ]\r\n  },\r\n  plugins: [\r\n    // css files from the extract-text-plugin loader\r\n    new ExtractTextPlugin(\"[name]-[chunkhash].css\", {\r\n      allChunks: true\r\n    })\r\n]\r\n\r\n...\r\n```\r\n\r\nI expected a main bundle to be built main-xxxx.js, main-xxxx.css and then chunks sell-form-xxxx.js and sell-form-xxxx.css to be built. However I realized the `cropper.css` above is being inline-d as a `<style>` tag instead of being loaded as a `<link>` stylesheet"},"comment":{"url":"https://api.github.com/repos/webpack/extract-text-webpack-plugin/issues/comments/217636706","html_url":"https://github.com/webpack/extract-text-webpack-plugin/issues/106#issuecomment-217636706","issue_url":"https://api.github.com/repos/webpack/extract-text-webpack-plugin/issues/106","id":217636706,"user":{"login":"iotch","id":2292500,"avatar_url":"https://avatars.githubusercontent.com/u/2292500?v=3","gravatar_id":"","url":"https://api.github.com/users/iotch","html_url":"https://github.com/iotch","followers_url":"https://api.github.com/users/iotch/followers","following_url":"https://api.github.com/users/iotch/following{/other_user}","gists_url":"https://api.github.com/users/iotch/gists{/gist_id}","starred_url":"https://api.github.com/users/iotch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iotch/subscriptions","organizations_url":"https://api.github.com/users/iotch/orgs","repos_url":"https://api.github.com/users/iotch/repos","events_url":"https://api.github.com/users/iotch/events{/privacy}","received_events_url":"https://api.github.com/users/iotch/received_events","type":"User","site_admin":false},"created_at":"2016-05-07T13:55:53Z","updated_at":"2016-05-07T13:55:53Z","body":"It seems like you should use `allChunks:true` both in `ExtractTextPlugin.extract()` first and `new ExtractTextPlugin()` later."}}