Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

How should I use this if I also have CSS modules enabled along with babel-plugin-react-css-modules ? #13

Open
@mkarajohn

Description

@mkarajohn

Sorry for making a question to the issue tracker, but since this is not a very popular loader, I figured it'd be easier to get an answer from here.

So, I have this in my webpack config

{
        test: /\.s(a|c)ss$/,
        use: ExtractTextPlugin.extract({
          // https://github.com/webpack-contrib/extract-text-webpack-plugin#extract
          use: [
            {
              loader: 'css-loader',
              options: {
                sourceMap: true,
                modules: true,
                localIdentName: cssModuleClassPattern
              }
            },
            'sass-loader'
          ],
          fallback: 'style-loader'
        })
      },

I tried using the loader inline for one specific import, but I cannot get it to work this way.
Where should this loader go in the config chain, considering the use of ExtractTextPlugin?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions