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

not success when I use global include some method with '@' #530

Closed
yinglau opened this issue May 10, 2017 · 3 comments
Closed

not success when I use global include some method with '@' #530

yinglau opened this issue May 10, 2017 · 3 comments

Comments

@yinglau
Copy link

yinglau commented May 10, 2017

HI, here it's some question when i use global with '@', for example

:global{
  @keyframes keyframes_name {
    //some css code
  }
}

then still become a local scope style, like that

@-webkit-keyframes fade-in__sk-fade-in___3BoOy {
  //some css code
}

What can I do will success that use the global with the keyword '@Keyframes', '@media' .....
thx...!

@Tenkir
Copy link

Tenkir commented May 12, 2017

I am having this same issue. Specifically, trying to globally scope a package stylesheet. Adding the global flag prevents any of this CSS from being imported.

:global {
  @import 'react-select/dist/react-select.css';
}

@alexander-akait
Copy link
Member

@yinglau @Tenkir it is related to css-modules, not to css-loader, we just using https://github.com/webpack-contrib/css-loader/blob/master/lib/processCss.js#L12 this plugins for css-modules

@alexander-akait
Copy link
Member

Duplicate #264

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

No branches or pull requests

3 participants