Skip to content

Not working with css-loader options.modules #10

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

Closed
chinfeng opened this issue Mar 5, 2018 · 1 comment
Closed

Not working with css-loader options.modules #10

chinfeng opened this issue Mar 5, 2018 · 1 comment

Comments

@chinfeng
Copy link

chinfeng commented Mar 5, 2018

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.
@Jessidhia
Copy link
Contributor

Fixed by #9

@sokra sokra closed this as completed Mar 5, 2018
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

3 participants