{"action":"created","issue":{"url":"https://api.github.com/repos/gajus/react-css-modules/issues/64","repository_url":"https://api.github.com/repos/gajus/react-css-modules","labels_url":"https://api.github.com/repos/gajus/react-css-modules/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/gajus/react-css-modules/issues/64/comments","events_url":"https://api.github.com/repos/gajus/react-css-modules/issues/64/events","html_url":"https://github.com/gajus/react-css-modules/issues/64","id":119875386,"number":64,"title":"bypass react-css-module for some CSS file","user":{"login":"nsisodiya","id":333455,"avatar_url":"https://avatars.githubusercontent.com/u/333455?v=3","gravatar_id":"","url":"https://api.github.com/users/nsisodiya","html_url":"https://github.com/nsisodiya","followers_url":"https://api.github.com/users/nsisodiya/followers","following_url":"https://api.github.com/users/nsisodiya/following{/other_user}","gists_url":"https://api.github.com/users/nsisodiya/gists{/gist_id}","starred_url":"https://api.github.com/users/nsisodiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nsisodiya/subscriptions","organizations_url":"https://api.github.com/users/nsisodiya/orgs","repos_url":"https://api.github.com/users/nsisodiya/repos","events_url":"https://api.github.com/users/nsisodiya/events{/privacy}","received_events_url":"https://api.github.com/users/nsisodiya/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gajus/react-css-modules/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2015-12-02T06:24:01Z","updated_at":"2016-07-06T15:41:18Z","closed_at":"2015-12-02T12:14:16Z","body":"I am using react-css-module ! but my project has two kind of files !\r\ninternal css files which I am writing which I want to load using react-css-module for unique class !\r\nexternal css files which I want to load as it is\r\n\r\nfor example\r\n\r\n```\r\nimport React, {Component} from 'react';\r\nimport styles from './EventCalendar.css';\r\nimport CSSModules from 'react-css-modules';\r\nimport DayPicker from \"react-day-picker\";\r\nimport \"react-day-picker/lib/style.css\";\r\n```\r\nThis is my webpack.config.js\r\n\r\n```\r\nvar ExtractTextPlugin = require(\"extract-text-webpack-plugin\");\r\n\r\nmodule.exports = {\r\n\tdevtool: 'source-map',\r\n\tentry: {\r\n\t\tmain: \"./src/js/ui/index.js\",\r\n\t\tworker: \"./src/js/bl/worker.js\"\r\n\t},\r\n\toutput: {\r\n\t\tpath: \"temp/dist\",\r\n\t\tfilename: \"[name].bundle.js\"\r\n\t},\r\n\tplugins: [\r\n\t\tnew ExtractTextPlugin('app.css', {\r\n\t\t\tallChunks: true\r\n\t\t})\r\n\t],\r\n\tmodule: {\r\n\t\tloaders: [\r\n\t\t\t{\r\n\t\t\t\ttest: /.js$/,\r\n\t\t\t\tloader: \"babel-loader\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\ttest: /\\.css$/,\r\n\t\t\t\tloader: ExtractTextPlugin.extract('style', 'css?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]')\r\n\t\t\t}\r\n\t\t]\r\n\t}\r\n};\r\n```\r\n\r\nI do not know how to proceed.. But right now, it is converting `react-day-picker/lib/style.css` also into local unique classes which I want to escape !\r\n"},"comment":{"url":"https://api.github.com/repos/gajus/react-css-modules/issues/comments/230812057","html_url":"https://github.com/gajus/react-css-modules/issues/64#issuecomment-230812057","issue_url":"https://api.github.com/repos/gajus/react-css-modules/issues/64","id":230812057,"user":{"login":"gajus","id":973543,"avatar_url":"https://avatars.githubusercontent.com/u/973543?v=3","gravatar_id":"","url":"https://api.github.com/users/gajus","html_url":"https://github.com/gajus","followers_url":"https://api.github.com/users/gajus/followers","following_url":"https://api.github.com/users/gajus/following{/other_user}","gists_url":"https://api.github.com/users/gajus/gists{/gist_id}","starred_url":"https://api.github.com/users/gajus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gajus/subscriptions","organizations_url":"https://api.github.com/users/gajus/orgs","repos_url":"https://api.github.com/users/gajus/repos","events_url":"https://api.github.com/users/gajus/events{/privacy}","received_events_url":"https://api.github.com/users/gajus/received_events","type":"User","site_admin":false},"created_at":"2016-07-06T15:41:18Z","updated_at":"2016-07-06T15:41:18Z","body":"I recommend against using `exclude` option for loaders. Prefer explicit import rules (i.e. `include`) over blacklist approach. Otherwise, those seeking an answer to this question will stumble upon this issue anyway (It ranks high in Google too)"}}
{"actor":{"display_login":"gajus"}}