{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/2812","repository_url":"https://api.github.com/repos/webpack/webpack","labels_url":"https://api.github.com/repos/webpack/webpack/issues/2812/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/2812/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/2812/events","html_url":"https://github.com/webpack/webpack/issues/2812","id":168188062,"number":2812,"title":"What is the new syntax for style loader with extraction?","user":{"login":"dschissler","id":3968727,"avatar_url":"https://avatars.githubusercontent.com/u/3968727?v=3","gravatar_id":"","url":"https://api.github.com/users/dschissler","html_url":"https://github.com/dschissler","followers_url":"https://api.github.com/users/dschissler/followers","following_url":"https://api.github.com/users/dschissler/following{/other_user}","gists_url":"https://api.github.com/users/dschissler/gists{/gist_id}","starred_url":"https://api.github.com/users/dschissler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dschissler/subscriptions","organizations_url":"https://api.github.com/users/dschissler/orgs","repos_url":"https://api.github.com/users/dschissler/repos","events_url":"https://api.github.com/users/dschissler/events{/privacy}","received_events_url":"https://api.github.com/users/dschissler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-07-28T20:25:03Z","updated_at":"2016-07-28T23:56:19Z","closed_at":null,"body":"I can't figure out the syntax for using style text extraction or how to use PostCSS with Webpack 2.\r\n\r\nCurrent correct Webpack 1:\r\n\r\n```javascript\r\n  plugins: [\r\n    new ExtractTextPlugin('css/[name].css', { allChunks: false}),\r\n  ],\r\n  loaders: [\r\n      {\r\n        test: /\\.css$/,\r\n        loader: ExtractTextPlugin.extract(\"style-loader\", \"css-loader!postcss-loader\")\r\n      {\r\n  ]\r\n```\r\n\r\nNew failed Webpack 2 experiment:\r\n\r\n```javascript\r\nlet extractCSS = new ExtractTextPlugin('css/[name].css');\r\n\r\n  loaders: [\r\n      {\r\n        test: /\\.css$/,\r\n        loader: extractCSS.extract({\r\n          notExtractLoader: 'style-loader',\r\n          loaders: ['css', 'postcss']\r\n        })\r\n      }\r\n  ]\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/webpack/webpack/issues/comments/236059213","html_url":"https://github.com/webpack/webpack/issues/2812#issuecomment-236059213","issue_url":"https://api.github.com/repos/webpack/webpack/issues/2812","id":236059213,"user":{"login":"dschissler","id":3968727,"avatar_url":"https://avatars.githubusercontent.com/u/3968727?v=3","gravatar_id":"","url":"https://api.github.com/users/dschissler","html_url":"https://github.com/dschissler","followers_url":"https://api.github.com/users/dschissler/followers","following_url":"https://api.github.com/users/dschissler/following{/other_user}","gists_url":"https://api.github.com/users/dschissler/gists{/gist_id}","starred_url":"https://api.github.com/users/dschissler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dschissler/subscriptions","organizations_url":"https://api.github.com/users/dschissler/orgs","repos_url":"https://api.github.com/users/dschissler/repos","events_url":"https://api.github.com/users/dschissler/events{/privacy}","received_events_url":"https://api.github.com/users/dschissler/received_events","type":"User","site_admin":false},"created_at":"2016-07-28T23:56:19Z","updated_at":"2016-07-28T23:56:19Z","body":"It finishes in 2 seconds and can produce the CSS file.\r\n\r\nIs this an issue with the plugin chaining second argument or with PostCSS working with Webpack 2?"}}
{"actor":{"display_login":"dschissler"}}