webpack / react-starter

[OUTDATED] Starter template for React with webpack. Doesn't focus on simplicity! NOT FOR BEGINNERS!
2.21k stars 320 forks source link

No easy way to include "global" CSS #89

Open wmertens opened 9 years ago

wmertens commented 9 years ago

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 commented 9 years ago

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.