{"action":"opened","issue":{"url":"https://api.github.com/repos/webpack-contrib/css-loader/issues/589","repository_url":"https://api.github.com/repos/webpack-contrib/css-loader","labels_url":"https://api.github.com/repos/webpack-contrib/css-loader/issues/589/labels{/name}","comments_url":"https://api.github.com/repos/webpack-contrib/css-loader/issues/589/comments","events_url":"https://api.github.com/repos/webpack-contrib/css-loader/issues/589/events","html_url":"https://github.com/webpack-contrib/css-loader/issues/589","id":248015129,"number":589,"title":"CSS modules break build if used with `~`","user":{"login":"jantimon","id":4113649,"avatar_url":"https://avatars2.githubusercontent.com/u/4113649?v=4","gravatar_id":"","url":"https://api.github.com/users/jantimon","html_url":"https://github.com/jantimon","followers_url":"https://api.github.com/users/jantimon/followers","following_url":"https://api.github.com/users/jantimon/following{/other_user}","gists_url":"https://api.github.com/users/jantimon/gists{/gist_id}","starred_url":"https://api.github.com/users/jantimon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jantimon/subscriptions","organizations_url":"https://api.github.com/users/jantimon/orgs","repos_url":"https://api.github.com/users/jantimon/repos","events_url":"https://api.github.com/users/jantimon/events{/privacy}","received_events_url":"https://api.github.com/users/jantimon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-04T14:00:54Z","updated_at":"2017-08-04T14:00:54Z","closed_at":null,"body":"> Module not found: Error: Can't resolve '~'\r\n\r\n**What is the current behavior?**\r\n\r\nUsing a tilde `~` inside a css file causes `Can't resolve '~'` if css-modules feature is activated:\r\n\r\n```js\r\n{\r\n  loader: 'css-loader',\r\n  options: {\r\n    modules: true,\r\n  }\r\n},\r\n```\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce.**\r\n\r\nThe bug can be reproduced this way: (https://github.com/jantimon/css-loader-bug)\r\n\r\n```bash\r\ngit clone https://github.com/jantimon/css-loader-bug.git\r\ncd css-loader-bug\r\nnpm install\r\nnpm run without-modules \r\nnpm run with-modules\r\n```\r\n\r\n[Working webpack.config.js](https://github.com/jantimon/css-loader-bug/blob/master/without-modules/webpack.config.js)\r\n[Broken webpack.config.js](https://github.com/jantimon/css-loader-bug/blob/master/with-modules/webpack.config.js)\r\n[CSS File](https://github.com/jantimon/css-loader-bug/blob/master/index.css#L3)\r\n\r\n\r\n**What is the expected behavior?**\r\n\r\nCompilation should work even if `modules` are set to true."}}
{"actor":{"display_login":"jantimon"}}