master-co / css

The CSS Language and Framework

Home Page:https://css.master.co

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🐞 Static extraction misses generating variables and related classes

0Miles opened this issue Β· comments

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