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

Expected styles from a private modules are missing in the production client bundle #2253

Open
navanjr opened this issue Sep 25, 2024 · 0 comments
Labels
question Further information is requested

Comments

@navanjr
Copy link

navanjr commented Sep 25, 2024

Description

We have private modules using @nuxt/ui.
Their module setup uses nuxt.hook to add files to tailwindcss.config.
with...

// nuxt.config.ts
tailwindcss: {
    exposeConfig: true,
}

We can see at runtime our private modules were included in the tailwind content.
This is also confirmed with logs during the build and nuxt.hook

Everything works as expected when building locally...

npm run dev

or

nuxt build

However when building for production the resulting client bundle is missing any style used in a module.
in other words, anything from tailwindcss.content with node_modules in the path was skipped.

My modules tailwind styles don't work in production.

How can I debug this?

@navanjr navanjr added the question Further information is requested label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant