{"action":"opened","issue":{"url":"https://api.github.com/repos/webpack/extract-text-webpack-plugin/issues/294","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/294/labels{/name}","comments_url":"https://api.github.com/repos/webpack/extract-text-webpack-plugin/issues/294/comments","events_url":"https://api.github.com/repos/webpack/extract-text-webpack-plugin/issues/294/events","html_url":"https://github.com/webpack/extract-text-webpack-plugin/issues/294","id":191833112,"number":294,"title":"Not all styles included in extracted css","user":{"login":"KELiON","id":594298,"avatar_url":"https://avatars.githubusercontent.com/u/594298?v=3","gravatar_id":"","url":"https://api.github.com/users/KELiON","html_url":"https://github.com/KELiON","followers_url":"https://api.github.com/users/KELiON/followers","following_url":"https://api.github.com/users/KELiON/following{/other_user}","gists_url":"https://api.github.com/users/KELiON/gists{/gist_id}","starred_url":"https://api.github.com/users/KELiON/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KELiON/subscriptions","organizations_url":"https://api.github.com/users/KELiON/orgs","repos_url":"https://api.github.com/users/KELiON/repos","events_url":"https://api.github.com/users/KELiON/events{/privacy}","received_events_url":"https://api.github.com/users/KELiON/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-26T23:47:59Z","updated_at":"2016-11-26T23:47:59Z","closed_at":null,"body":"How can I debug why not all css modules are included in final css bundle?\r\n\r\nI've migrated to webpack 2 and rewrote my production config:\r\n\r\n```js\r\nmodule: {\r\n  loaders: [\r\n    ...baseConfig.module.loaders,\r\n\r\n    {\r\n      test: /global\\.css$/,\r\n      loader: ExtractTextPlugin.extract(\r\n        'style-loader',\r\n        'css-loader'\r\n      )\r\n    },\r\n\r\n    {\r\n      test: /^((?!global).)*\\.css$/,\r\n      loader: ExtractTextPlugin.extract(\r\n        'style-loader',\r\n        'css-loader?modules&importLoaders=1&!postcss-loader'\r\n      )\r\n    }\r\n  ]\r\n}\r\n...\r\nplugins: [\r\n  ...\r\n  new ExtractTextPlugin('style.css', { allChunks: true }),\r\n  ...\r\n]\r\n\r\n```\r\n\r\nAnd now:\r\n\r\n```js\r\nmodule: {\r\n  rules: [\r\n    ...baseConfig.module.rules,\r\n\r\n    {\r\n      test: /global\\.css$/,\r\n      loader: ExtractTextPlugin.extract({\r\n        fallbackLoader: 'style-loader',\r\n        loader: 'css-loader'\r\n      })\r\n    },\r\n    {\r\n      test: /^((?!global).)*\\.css$/,\r\n      loader: ExtractTextPlugin.extract({\r\n        fallbackLoader: 'style-loader',\r\n        loader: 'css-loader?modules&importLoaders=1!postcss-loader'\r\n      })\r\n    }\r\n  ]\r\n}\r\n...\r\nplugins: [\r\n  ...\r\n  new ExtractTextPlugin({\r\n    filename: 'style.css',\r\n    allChunks: true\r\n  }),\r\n  ...\r\n]\r\n```\r\n\r\nFirst config works in webpack 1, but with new config and webpack 2 I see that a lot of styles are not in styles.css. How can I debug why it happens? \r\n\r\nAlso, if I use rules from development (without ExtractCss) it works:\r\n\r\n```js\r\n{\r\n  test: /global\\.css$/,\r\n  use: [\r\n    'style-loader',\r\n    {\r\n      loader: 'css-loader',\r\n      options: {\r\n        sourceMap: true\r\n      }\r\n    }\r\n  ]\r\n},\r\n\r\n{\r\n  test: /^((?!global).)*\\.css$/,\r\n  use: [\r\n    {\r\n      loader: 'style-loader',\r\n      options: {\r\n        sourceMap: true\r\n      }\r\n    },\r\n    {\r\n      loader: 'css-loader',\r\n      options: {\r\n        modules: true,\r\n        sourceMap: true,\r\n        importLoaders: 1\r\n      }\r\n    },\r\n    'postcss-loader'\r\n  ]\r\n}\r\n```"}}
{"actor":{"display_login":"KELiON"}}