{"action":"opened","issue":{"url":"https://api.github.com/repos/webpack-contrib/extract-text-webpack-plugin/issues/428","repository_url":"https://api.github.com/repos/webpack-contrib/extract-text-webpack-plugin","labels_url":"https://api.github.com/repos/webpack-contrib/extract-text-webpack-plugin/issues/428/labels{/name}","comments_url":"https://api.github.com/repos/webpack-contrib/extract-text-webpack-plugin/issues/428/comments","events_url":"https://api.github.com/repos/webpack-contrib/extract-text-webpack-plugin/issues/428/events","html_url":"https://github.com/webpack-contrib/extract-text-webpack-plugin/issues/428","id":210023384,"number":428,"title":"Can't extract multiple .css files from a single .js entry (imported multiple .scss files)?","user":{"login":"Tiendq","id":815910,"avatar_url":"https://avatars.githubusercontent.com/u/815910?v=3","gravatar_id":"","url":"https://api.github.com/users/Tiendq","html_url":"https://github.com/Tiendq","followers_url":"https://api.github.com/users/Tiendq/followers","following_url":"https://api.github.com/users/Tiendq/following{/other_user}","gists_url":"https://api.github.com/users/Tiendq/gists{/gist_id}","starred_url":"https://api.github.com/users/Tiendq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tiendq/subscriptions","organizations_url":"https://api.github.com/users/Tiendq/orgs","repos_url":"https://api.github.com/users/Tiendq/repos","events_url":"https://api.github.com/users/Tiendq/events{/privacy}","received_events_url":"https://api.github.com/users/Tiendq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-24T11:20:02Z","updated_at":"2017-02-24T11:20:02Z","closed_at":null,"body":"How can I extract `main.scss` and 'home.scss` into `main.css` and `home.css` in the following example?\r\n\r\n**Result:** There was no error, but only `home.css` was created.\r\n\r\n**home.js**\r\n```javascript\r\nimport '../scss/main.scss';\r\nimport '../scss/home.scss';\r\n```\r\n\r\n**main.scss**\r\n```scss\r\n.test1 { color: #f00; }\r\n```\r\n\r\n**home.scss**\r\n```scss\r\n.test2 { color: #00f; }\r\n```\r\n\r\n**webpack.config.js**\r\n```javascript\r\nlet webpack = require('webpack');\r\nlet ExtractTextPlugin = require('extract-text-webpack-plugin');\r\n\r\nmodule.exports = {\r\n  module: {\r\n    rules: [{\r\n      test: /\\.js$/,\r\n      exclude: /node_modules/,\r\n      use: 'babel-loader'\r\n    }, {\r\n      test: /\\.scss$/,\r\n      use: ExtractTextPlugin.extract(['css-loader', 'sass-loader'])\r\n    }]\r\n  },\r\n  entry: {\r\n    'home': './scripts/home.js'\r\n  },\r\n  output: {\r\n    filename: '[name].js',\r\n    path: __dirname + '/static/scripts',\r\n    publicPath: '/static/'\r\n  },\r\n  plugins: [\r\n    new ExtractTextPlugin('../css/[name].css')\r\n  ]\r\n};\r\n```"}}
{"actor":{"display_login":"Tiendq"}}