-
Notifications
You must be signed in to change notification settings - Fork 186
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
Docker environment not injecting tailwind.css
#695
Comments
Could this be related to your content configuration? Can you provide a reproduction over Stackblitz please? |
Did you find anything @ineshbose ? |
Thanks for linking a deployment - but I'd need to look at the source code as well please, so a reproduction over a web container editor would be ideal. You can use this as a starter - https://stackblitz.com/github/nuxt/starter/tree/v3-stackblitz?file=README.md |
The fix was: export default defineNuxtConfig({
experimental: {
inlineSSRStyles: false
}
}) I think this fix (nuxt/nuxt#21573) break the tailwind plugin |
save my day 👍 |
Thank you for the workaround by disabling the experimental option; it has resolved the issue for me as well. |
Hi, I'm still not aware of what is causing this bug because I haven't encountered it yet - can you provide a reproduction please and I'll investigate as quickly as possible? |
Interestingly, the issue occurs exclusively when building the app within a Docker container. (at least for me) It works as expected on StackBlitz, as well as locally on my MacBook. Here is a minimal reproduction: To reproduce the issue, build it with: docker build . -t test
docker run -p 3000:3000 test The Tailwind styles do not appear in the production build. However, if you uncomment |
Sorry it took me a while to get to this, it seems that |
tailwind.css
Quick follow up on this issue - does it persist on the latest versions of Nuxt, Vite and this module? |
latest version still have this problem |
yep, been facing same issue. |
Here is the screenshot of code:
In local it works fine, and shows a gradient color around the button
But in production or on running
npx nuxt generate
It doesn't show the gradient color.
On doing inspect element it shows the class present in source code, but doesn't gets applied somehow
The text was updated successfully, but these errors were encountered: