Skip to content

Build error for CSS modules with :root only #26

Closed
@jsikorski

Description

@jsikorski

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions