{"action":"created","issue":{"url":"https://api.github.com/repos/webpack-contrib/mini-css-extract-plugin/issues/209","repository_url":"https://api.github.com/repos/webpack-contrib/mini-css-extract-plugin","labels_url":"https://api.github.com/repos/webpack-contrib/mini-css-extract-plugin/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/webpack-contrib/mini-css-extract-plugin/issues/209/comments","events_url":"https://api.github.com/repos/webpack-contrib/mini-css-extract-plugin/issues/209/events","html_url":"https://github.com/webpack-contrib/mini-css-extract-plugin/issues/209","id":341228977,"node_id":"MDU6SXNzdWUzNDEyMjg5Nzc=","number":209,"title":"Loader doesn't apply","user":{"login":"daryn-k","id":24268974,"node_id":"MDQ6VXNlcjI0MjY4OTc0","avatar_url":"https://avatars0.githubusercontent.com/u/24268974?v=4","gravatar_id":"","url":"https://api.github.com/users/daryn-k","html_url":"https://github.com/daryn-k","followers_url":"https://api.github.com/users/daryn-k/followers","following_url":"https://api.github.com/users/daryn-k/following{/other_user}","gists_url":"https://api.github.com/users/daryn-k/gists{/gist_id}","starred_url":"https://api.github.com/users/daryn-k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daryn-k/subscriptions","organizations_url":"https://api.github.com/users/daryn-k/orgs","repos_url":"https://api.github.com/users/daryn-k/repos","events_url":"https://api.github.com/users/daryn-k/events{/privacy}","received_events_url":"https://api.github.com/users/daryn-k/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-14T11:13:12Z","updated_at":"2018-07-14T11:21:52Z","closed_at":"2018-07-14T11:21:03Z","author_association":"NONE","body":"Sorry, guys, I don't know why, but this css-loader doesn't apply... So weird.\r\n\r\n```\r\n  ERROR in ./src/app/components/App/App.css 1:5\r\n    Module parse failed: Unexpected token (1:5)\r\n    You may need an appropriate loader to handle this file type.\r\n    > body {\r\n    |     background-color: #ebebeb;\r\n    | }\r\n```\r\nwebpack.config.js:\r\n\r\n```\r\nvar path = require('path')\r\nvar webpack = require('webpack')\r\nvar nodeExternals = require('webpack-node-externals')\r\nvar UglifyJsPlugin = require('uglifyjs-webpack-plugin')\r\nvar MiniCssExtractPlugin = require(\"mini-css-extract-plugin\")\r\nvar  { setHash } = require('./utils/hash');\r\n\r\nvar clientConfig = {\r\n  entry: './src/client/index.js',\r\n  output: {\r\n    path: path.resolve(__dirname, 'public/js'),\r\n    filename: 'bundle.js',\r\n    publicPath: 'http://localhost:8080/js'\r\n  },\r\n  plugins: [\r\n    new MiniCssExtractPlugin({\r\n      filename: \"[name].css\"\r\n    })\r\n  ],\r\n  module: {\r\n    rules: [\r\n      {\r\n        test: /\\.(js)$/,\r\n        exclude: /node_modules/,\r\n        use: 'babel-loader'\r\n      },\r\n      {\r\n        test: /\\.js$/,\r\n        exclude: /node_modules/,\r\n        loader: 'eslint-loader'\r\n      },\r\n      {\r\n        test: /\\.css$/,\r\n        use: [\r\n          MiniCssExtractPlugin.loader,\r\n          \"css-loader\"\r\n        ]\r\n      }\r\n    ]\r\n  },\r\n  optimization: {\r\n    minimizer: [\r\n      new UglifyJsPlugin({\r\n        uglifyOptions: {\r\n          output: {\r\n            comments: false\r\n          }\r\n        }\r\n      })\r\n    ]\r\n  },\r\n  devServer: {\r\n    headers: { 'Access-Control-Allow-Origin': '*' }\r\n  }\r\n}\r\n\r\nvar serverConfig = {\r\n  entry: './src/server/index.js',\r\n  target: 'node',\r\n  externals: [nodeExternals()],\r\n  output: {\r\n    path: __dirname,\r\n    filename: 'server.js',\r\n    publicPath: '/'\r\n  },\r\n  module: {\r\n    rules: [\r\n      {\r\n        test: /\\.(js)$/,\r\n        use: 'babel-loader'\r\n      }\r\n    ]\r\n  }\r\n}\r\n\r\nmodule.exports = (env, argv) => {\r\n  if (argv.mode === 'production') {\r\n    var hash = setHash()\r\n    clientConfig.output.filename = hash + '.js'\r\n  }\r\n\r\n  return [clientConfig, serverConfig];\r\n};\r\n```"},"comment":{"url":"https://api.github.com/repos/webpack-contrib/mini-css-extract-plugin/issues/comments/405016760","html_url":"https://github.com/webpack-contrib/mini-css-extract-plugin/issues/209#issuecomment-405016760","issue_url":"https://api.github.com/repos/webpack-contrib/mini-css-extract-plugin/issues/209","id":405016760,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTAxNjc2MA==","user":{"login":"daryn-k","id":24268974,"node_id":"MDQ6VXNlcjI0MjY4OTc0","avatar_url":"https://avatars0.githubusercontent.com/u/24268974?v=4","gravatar_id":"","url":"https://api.github.com/users/daryn-k","html_url":"https://github.com/daryn-k","followers_url":"https://api.github.com/users/daryn-k/followers","following_url":"https://api.github.com/users/daryn-k/following{/other_user}","gists_url":"https://api.github.com/users/daryn-k/gists{/gist_id}","starred_url":"https://api.github.com/users/daryn-k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daryn-k/subscriptions","organizations_url":"https://api.github.com/users/daryn-k/orgs","repos_url":"https://api.github.com/users/daryn-k/repos","events_url":"https://api.github.com/users/daryn-k/events{/privacy}","received_events_url":"https://api.github.com/users/daryn-k/received_events","type":"User","site_admin":false},"created_at":"2018-07-14T11:21:52Z","updated_at":"2018-07-14T11:21:52Z","author_association":"NONE","body":"Oops, it's my fault because of serverConfig section"}}
{"actor":{"display_login":"daryn-k"}}