Skip to content

🐞 Static extraction misses generating variables and related classes #337

@0Miles

Description

@0Miles

Description

When using Static Extraction,
classes like $something:$(custom-color) won't be generated, and variables defined in settings that are only used by this type of syntax won't be generated either.

Reproduction

  1. create a static extraction project
npm create @master/css@rc project --example vite-with-static-extraction
cd project
  1. set master.config.ts
...
styles: {
    test: '$test:$(test-color)'
},
variables: {
    'test-color': 'rgb(0 1 2)'
}
...
  1. build and check output css
    $test:$(test-color) and test-color will not appear in the output CSS.

System Informations

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions