Skip to content
This repository has been archived by the owner on Jan 16, 2018. It is now read-only.

No easy way to include "global" CSS #89

Open
wmertens opened this issue Jul 27, 2015 · 1 comment
Open

No easy way to include "global" CSS #89

wmertens opened this issue Jul 27, 2015 · 1 comment

Comments

@wmertens
Copy link

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
Copy link
Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant