{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/css-loader/issues/193","repository_url":"https://api.github.com/repos/webpack/css-loader","labels_url":"https://api.github.com/repos/webpack/css-loader/issues/193/labels{/name}","comments_url":"https://api.github.com/repos/webpack/css-loader/issues/193/comments","events_url":"https://api.github.com/repos/webpack/css-loader/issues/193/events","html_url":"https://github.com/webpack/css-loader/issues/193","id":117894947,"number":193,"title":"Flag to disable local scoping. ","user":{"login":"mattmarcello","id":4753479,"avatar_url":"https://avatars.githubusercontent.com/u/4753479?v=3","gravatar_id":"","url":"https://api.github.com/users/mattmarcello","html_url":"https://github.com/mattmarcello","followers_url":"https://api.github.com/users/mattmarcello/followers","following_url":"https://api.github.com/users/mattmarcello/following{/other_user}","gists_url":"https://api.github.com/users/mattmarcello/gists{/gist_id}","starred_url":"https://api.github.com/users/mattmarcello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattmarcello/subscriptions","organizations_url":"https://api.github.com/users/mattmarcello/orgs","repos_url":"https://api.github.com/users/mattmarcello/repos","events_url":"https://api.github.com/users/mattmarcello/events{/privacy}","received_events_url":"https://api.github.com/users/mattmarcello/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2015-11-19T19:56:51Z","updated_at":"2016-12-14T22:34:11Z","closed_at":null,"body":"I am using css-loader with modules enabled in my webpack.config.  I am very much into locally scoped css, but wish to have the ability to turn off css-modules for certain stylesheets (e.g. bootstrap.css).  \n\nI am currently accomplishing this by bypassing the loader configuration as follows:\n\n``` js\nimport '!style!css!path/to/external_library.css'\n```\n\nThis will insert the stylesheet in a style tag in the head of my markup.  This is all well and good, except the stylesheets are not extracted by the ExtractTextPlugin during my production builds.  \n\nAny thoughts on this?\n\nBest, \nMatt\n"},"comment":{"url":"https://api.github.com/repos/webpack/css-loader/issues/comments/267178376","html_url":"https://github.com/webpack/css-loader/issues/193#issuecomment-267178376","issue_url":"https://api.github.com/repos/webpack/css-loader/issues/193","id":267178376,"user":{"login":"snaptopixel","id":2121285,"avatar_url":"https://avatars.githubusercontent.com/u/2121285?v=3","gravatar_id":"","url":"https://api.github.com/users/snaptopixel","html_url":"https://github.com/snaptopixel","followers_url":"https://api.github.com/users/snaptopixel/followers","following_url":"https://api.github.com/users/snaptopixel/following{/other_user}","gists_url":"https://api.github.com/users/snaptopixel/gists{/gist_id}","starred_url":"https://api.github.com/users/snaptopixel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snaptopixel/subscriptions","organizations_url":"https://api.github.com/users/snaptopixel/orgs","repos_url":"https://api.github.com/users/snaptopixel/repos","events_url":"https://api.github.com/users/snaptopixel/events{/privacy}","received_events_url":"https://api.github.com/users/snaptopixel/received_events","type":"User","site_admin":false},"created_at":"2016-12-14T22:34:11Z","updated_at":"2016-12-14T22:34:11Z","body":"Funny you resurrected this @avbentem I was just working on a config for this... In my case, I have two loaders and use the convention @markdalgleish mentioned. The regex was a little tricky to get right but it saves you from having to worry about include/exclude.\r\n\r\nWith these loaders you can load scss|css files from all over the place and **only** files denoted `.local.css|scss` will get the module treatment.\r\n\r\n```js\r\nvar cssPrefix = 'css?-mergeRules&importLoaders=2';\r\nvar cssModulesPrefix = cssPrefix + '&modules&localIdentName=[local]-[hash:8]';\r\nvar cssPostfix = '!postcss!sass';\r\n\r\nsassLoader = {\r\n  test: /^((?!\\.local).)*\\.s?css$/,\r\n  loader: base.extractSass.extract('style!raw', cssPrefix + cssPostfix)\r\n},\r\nsassModuleLoader = {\r\n  test: /\\.local\\.s?css$/,\r\n  loader: base.extractSass.extract('style!raw', cssModulesPrefix + cssPostfix)\r\n}\r\n```"}}
{"actor":{"display_login":"snaptopixel"}}