Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 Static extraction misses generating variables and related classes #337

Open
0Miles opened this issue Mar 25, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@0Miles
Copy link
Contributor

0Miles commented Mar 25, 2024

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

@0Miles 0Miles added the bug Something isn't working label Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant