Skip to content

Using @value in composes failing #83

Open
@sidhu663

Description

@sidhu663

//theme.css
.smallText {
font-size: 10px;
}

//style.css
@value theme: 'theme.css';

.myClass {
composes: smallText from theme;
}

The above example results in a "Module build failed: referenced class name "smallText" in composes not found"

Using webpack

Assigning the import to a value first works fine:

//style.css
@value theme: 'theme.css';
@value smallText from theme;

.myClass {
composes: smallText
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions