Using tailwind config from publishable nx angular library in another repo #26791
Unanswered
OmarSalama7
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a publishable nx angular library that is using tailwind. I would like to reuse the
tailwind.config.js
into an app in another repo. I checked this documentation here on how to integrate it, however it doesn't fit my needs as I need the settings fromtailwind.config.js
in the app'stailwind.config.js
https://nx.dev/recipes/angular/using-tailwind-css-with-angular-projects#distribute-publishable-libraries-themesI managed to make it work by doing the following:
exports
property in the package.json in the library.and then importing it in the app:
I am getting a warning though whenever I serve or build the app:
Is there a way to make it work by sharing the tailwind config?
Beta Was this translation helpful? Give feedback.
All reactions