π 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
- create a static extraction project
npm create @master/css@rc project --example vite-with-static-extraction
cd project
- set master.config.ts
...
styles: {
test: '$test:$(test-color)'
},
variables: {
'test-color': 'rgb(0 1 2)'
}
...
- build and check output css
$test:$(test-color)
andtest-color
will not appear in the output CSS.
System Informations
No response