Skip to content
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

Add global wrapper for CSS Modules #36

Closed
justin808 opened this issue Nov 1, 2015 · 1 comment
Closed

Add global wrapper for CSS Modules #36

justin808 opened this issue Nov 1, 2015 · 1 comment

Comments

@justin808
Copy link
Member

@alexfedoseev to comment more -- some rough notes.

We need to wrap the output of the imports like:

Since Webpack's CSS loader knows about :global so whether or not we use this with Wepback's Javascript CSS or extract-text-plugin on the CSS, this should work fine.

So we don't need an option. (wow!)

:global {
  @import "<file1>";
  @import "<file2>";
}

where these are the current files.

  @import "<file1>";
  @import "<file2>";

We'll want to update the example https://github.com/shakacode/bootstrap-sass-loader-example

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

No branches or pull requests

1 participant