react-starter icon indicating copy to clipboard operation
react-starter copied to clipboard

No easy way to include "global" CSS

Open wmertens opened this issue 10 years ago • 1 comments

There are times when you need to include third-party code and it expects its CSS classes to be global, for example react-bootstrap or when you're wrapping a jQuery plugin.

The only ways I found to let the CSS be unmangled by the module loading, are to import them with "!style!css!...bootstrap.css" or to include them in the html. Both have big disadvantages.

Is there a way to have the css loader not modularize for everything under node_modules?

wmertens avatar Jul 27 '15 08:07 wmertens

I have a solution and will make a PR when I have time. Basically, I create two sets of loaders, one including node_modules and the other excluding it.

wmertens avatar Aug 27 '15 11:08 wmertens