{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleChromeLabs/prerender-loader/issues/18","repository_url":"https://api.github.com/repos/GoogleChromeLabs/prerender-loader","labels_url":"https://api.github.com/repos/GoogleChromeLabs/prerender-loader/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/GoogleChromeLabs/prerender-loader/issues/18/comments","events_url":"https://api.github.com/repos/GoogleChromeLabs/prerender-loader/issues/18/events","html_url":"https://github.com/GoogleChromeLabs/prerender-loader/issues/18","id":370612988,"node_id":"MDU6SXNzdWUzNzA2MTI5ODg=","number":18,"title":"Extracting css/scss on build time","user":{"login":"NirBenya","id":15313208,"node_id":"MDQ6VXNlcjE1MzEzMjA4","avatar_url":"https://avatars2.githubusercontent.com/u/15313208?v=4","gravatar_id":"","url":"https://api.github.com/users/NirBenya","html_url":"https://github.com/NirBenya","followers_url":"https://api.github.com/users/NirBenya/followers","following_url":"https://api.github.com/users/NirBenya/following{/other_user}","gists_url":"https://api.github.com/users/NirBenya/gists{/gist_id}","starred_url":"https://api.github.com/users/NirBenya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NirBenya/subscriptions","organizations_url":"https://api.github.com/users/NirBenya/orgs","repos_url":"https://api.github.com/users/NirBenya/repos","events_url":"https://api.github.com/users/NirBenya/events{/privacy}","received_events_url":"https://api.github.com/users/NirBenya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-16T13:29:56Z","updated_at":"2018-10-26T20:10:01Z","closed_at":null,"author_association":"NONE","body":"Hi, the prerender-loader works fine for me except when it comes to css.\r\n\r\nIn my index.js:\r\n`import './style.scss`\r\n\r\nBut when I run the build I get this error:\r\n\r\n`ERROR in ./web-assets/scss/style.scss Module build failed: Error: \"extract-text-webpack-plugin\" loader is used without the corresponding plugin, refer to https://github.com/webpack/extract-text-webpack-plugin for the usage example`\r\n\r\nwebpack.prod.config:\r\n\r\n    output: {\r\n        filename: \"[name]-[chunkhash].js\",\r\n        chunkFilename: \"[id].[chunkhash].bundle.js\",\r\n        publicPath: '/static/dist/',\r\n        path: __dirname + \"/dist\"\r\n    },\r\n\r\n    plugins: [\r\n\r\n        new webpack.optimize.UglifyJsPlugin(),\r\n        new webpack.LoaderOptionsPlugin({ minimize: true }),\r\n        new webpack.IgnorePlugin(/^\\.\\/locale$/, /moment$/),\r\n        new HtmlWebpackPlugin({\r\n            filename: 'index.html',\r\n            template: '!!prerender-loader?string!index.html.html',\r\n        }),\r\n        new ExtractTextPlugin(\"[name]-[chunkhash].css\"),\r\n      \r\n\r\n    ],\r\n\r\n    module: {\r\n        rules: [\r\n \r\n            {\r\n                test: /\\.css$/,\r\n                use: ExtractTextPlugin.extract({\r\n                    fallback: \"style-loader\",\r\n                    loader: \"css-loader\"\r\n                })\r\n            },\r\n            {\r\n                test: /\\.scss/,\r\n                use: ExtractTextPlugin.extract({\r\n                    fallback: \"style-loader\",\r\n                    loader: [\r\n                        {\r\n                            loader: 'css-loader',\r\n                            options: {\r\n                                sourceMap: true\r\n                            }\r\n                        },\r\n                        {\r\n                            loader: 'sass-loader',\r\n                            options: {\r\n                                sourceMap: true\r\n                            }\r\n                        }\r\n                    ]\r\n                })\r\n            },  \r\n        ]\r\n    }\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/GoogleChromeLabs/prerender-loader/issues/comments/433528953","html_url":"https://github.com/GoogleChromeLabs/prerender-loader/issues/18#issuecomment-433528953","issue_url":"https://api.github.com/repos/GoogleChromeLabs/prerender-loader/issues/18","id":433528953,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzUyODk1Mw==","user":{"login":"hugmanrique","id":6255580,"node_id":"MDQ6VXNlcjYyNTU1ODA=","avatar_url":"https://avatars0.githubusercontent.com/u/6255580?v=4","gravatar_id":"","url":"https://api.github.com/users/hugmanrique","html_url":"https://github.com/hugmanrique","followers_url":"https://api.github.com/users/hugmanrique/followers","following_url":"https://api.github.com/users/hugmanrique/following{/other_user}","gists_url":"https://api.github.com/users/hugmanrique/gists{/gist_id}","starred_url":"https://api.github.com/users/hugmanrique/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugmanrique/subscriptions","organizations_url":"https://api.github.com/users/hugmanrique/orgs","repos_url":"https://api.github.com/users/hugmanrique/repos","events_url":"https://api.github.com/users/hugmanrique/events{/privacy}","received_events_url":"https://api.github.com/users/hugmanrique/received_events","type":"User","site_admin":false},"created_at":"2018-10-26T20:10:01Z","updated_at":"2018-10-26T20:10:01Z","author_association":"CONTRIBUTOR","body":"Whoops! Sorry I missed that. Have you tried passing the `HtmlLoaderPlugin` instance after the `ExtractTextPlugin` one on the `plugins` array?"}}
{"actor":{"display_login":"hugmanrique"}}