Skip to content

[V4] How to use multiple Presets in monorepo? #15161

Discussion options

You must be logged in to vote

In the Module's code, removed the line where the Module's tw.css was being unshifted to the Nuxt's css array.

Now none of the classes works. Which is logical, because no source is set.

I just set the sources (e.g., components folder, pages folder, etc.) in the main app's tw.css. Now, the classes work.

I like this setup because the main app can control where to apply the base file and where to apply the main file.

The components inside the Module should also works nicely (yet to test). In such base components, I can use classes such as text-primary-500 and it is up to the main app to decide what the primary color will be. Perfect. But will need to add proper source inside the Module's tw…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ManasMadrecha
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants