Skip to content

Variables compilation and open-props #278

Answered by nmn
edamascus asked this question in Q&A
Discussion options

You must be logged in to vote

Shouldn't unused variables be excluded?

We will do this eventually, but it's not a high priorirty because
this problem can be solved with a PostCSS or LighteningCSS plugin.

https://github.com/tomasklaen/postcss-prune-var


Regarding the use the shadow variables, I just tried it in a NextJS app dir project and everything seems to work correctly for me.

If the issue is during development, try updating to the just released v0.4.1

If the issue is during production, try clearing the Vite cache.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@edamascus
Comment options

@edamascus
Comment options

@nmn
Comment options

nmn Dec 31, 2023
Collaborator

@edamascus
Comment options

@nmn
Comment options

nmn Jan 5, 2024
Collaborator

Answer selected by nmn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants