The packaging result of the Vite library mode is the css of the entire project #17025
Unanswered
Nicholas003
asked this question in
Help
Replies: 2 comments 8 replies
-
Hello! I have the same question as you (posted here). I imagine somewhere in your css file, you're doing |
Beta Was this translation helpful? Give feedback.
0 replies
-
@philipp-spiess, why did you convert this to a discussion (from this issue)? It seems like it's a bug in the tailwindcss vite plugin, no? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What version of Tailwind CSS are you using?
v4.0.9
What build tool (or framework if it abstracts the build tool) are you using?
"@tailwindcss/postcss": "^4.0.9",
"@tailwindcss/vite": "^4.0.9",
"postcss": "^8.5.3",
"tailwindcss": "^4.0.9",
"vite": "^6.1.0",
What version of Node.js are you using?
v20.18.3
What browser are you using?
Chrome, Safari
What operating system are you using?
macOS
Describe your issue
I am using the Vite Library Mode to package. I only want to package the styles of specified files and related dependency files, but now the packaged styles are all from the entire project

build HelloWorld.vue ,The result contains all styles
I know 'base' params but that would lose the dependent style
Beta Was this translation helpful? Give feedback.
All reactions