Using webpack to load CSS files from node modules

Viewed 9977

I'm trying to use a react component that includes a css file. I'm requiring the component as usual:

var Select = require('react-select');

I'd like to know how can I require the css needed for the component.

I've already tried this:

require('react-select/dist/react-select.css');

And this:

require('react-select.css');

And none have worked.

2 Answers
Related