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

less compilation with css-modules #83

Open
sharmasourabh opened this issue Jun 19, 2019 · 0 comments
Open

less compilation with css-modules #83

sharmasourabh opened this issue Jun 19, 2019 · 0 comments

Comments

@sharmasourabh
Copy link

Which version are you using (less-watch-compiler --version to find out)?: 1.13.0

Is the issue reproducible after updating to the latest version ( npm update less-watch-compiler)? Yes

Describe the bug
Does not work with css-modules.

.aClass {
  width: 100%;
  display: flex;

  :global {
    .bClass {
      font-size: 14px;
    }
  }
}

gets compiled into

.aClass{
  width: 100%;
  display: flex;
}

.aClass :global .bClass {
  font-size: 14px;
}

Could you please share how to handle scoped variables?

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

1 participant