Skip to content

Build error for CSS modules with :root only #26

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

Closed
jsikorski opened this issue May 20, 2020 · 1 comment · Fixed by #27
Closed

Build error for CSS modules with :root only #26

jsikorski opened this issue May 20, 2020 · 1 comment · Fixed by #27

Comments

@jsikorski
Copy link
Contributor

We have encountered an issue with CSS modules that don't contain any "default" classes but include :root pseudo-class. For example for declarations.scss file with the following content:

:root { --background: green; }

the build result is:

image

Adding any "default" class to this file solves the problem.

@Obi-Dann
Copy link
Contributor

Obi-Dann commented Aug 3, 2020

Publish in version V2.2.1

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

Successfully merging a pull request may close this issue.

2 participants