v1.9.6 purge with important selector #8512
Unanswered
jens-morten-mikkelsen
asked this question in
Help
Replies: 1 comment
-
i've found some docs for v3 that the selector has to be on the root node, which means we'll have to add this |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello 👋
I'm working on a, rather complex, project where we are moving from an old angular setup to a new vite-vue2-compositionapi setup. In the new setup we are also implementing a new design, so it has its own tailwind setup. And to ensure that the new "modern" styling overrules the old, we are using the
important
option, it is set to:important: '.vue-universe'
.The issue that we are running into is that when we have this important selector, purge removes ALL of our tailwind classes.
We have tried with having the purge set in
tailwind.config.js
and a manual setup inpostcss.config.js
, but so far nothing seems to be working.I can deduce that it is the important selector option that is causing the issue, because if i remove it, everything works fine.
Also, since we are using this vue insode angular setup, we are adding the "vue-universe" class to the vue components that are registered to Angular using js.
Beta Was this translation helpful? Give feedback.
All reactions