Skip to content

Not working with css-loader options.modules #10

Closed
@chinfeng

Description

@chinfeng

Testing with webpack v4.0.1 :

{
  test: /\.css$/,
  use: [
          MiniCssExtractPlugin.loader,
          { loader: 'css-loader', options: { modules: true } }
  ]
}

When requiring css file, it always get empty object:

const styles = require('xxx.css'); // always get {} even it is not.

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