Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request? #82

Closed
bradennapier opened this issue Jul 4, 2017 · 1 comment
Closed

Request? #82

bradennapier opened this issue Jul 4, 2017 · 1 comment

Comments

@bradennapier
Copy link

bradennapier commented Jul 4, 2017

Thanks for using react-select!

It has become fairly common practice from what I can tell for users of CSSModules to parse .global.css and have that indicate that css modules should not be used. It would be awesome if that were the case here so that it would be much simpler to implement the css with a simple import.

I would think its a fairly easy thing to support and would be an appreciated feature.

Thanks a ton to everyone who maintains this. I used the old select a ton and love what I am seeing here -- starting the path to upgrade now.

{
        test: /\.global\.css$/,
        use: [
          {
            loader: 'style-loader',
          },
          {
            loader: 'css-loader',
            options: {
              sourceMap: true,
            },
          },
        ],
      },
      {
        test: /^((?!\.global).)*\.css$/,
        use: [
          {
            loader: 'style-loader',
          },
          {
            loader: 'css-loader',
            options: {
              modules: true,
              sourceMap: true,
              camelCase: true,
              importLoaders: 1,
              localIdentName: '[name]__[local]__[hash:base64:5]',
            },
          },
          {
            loader: 'postcss-loader',
            options: {
              sourceMap: true,
            },
          },
        ],
      },
@TrevorBurnham
Copy link
Contributor

You should make this request to the upstream project: https://github.com/JedWatson/react-select If they make the change there, it'll get merged in here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants