-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Description
Current Behavior
After generating a workspace containing an application and a library and configuring Tailwind for both using the qwik-nx generator, we can observe that the tailwind configuration of the library is never applied.
Expected Behavior
I have options:
- The Tailwind config for the library should work (I don't know how easy or possible this is)
- Make the default work like Nx + React + Tailwind, where the libraries use the tailwind config of the application that imports them.
If the team prefers solution 2, I can create a PR.
GitHub Repo
https://github.com/NachoVazquez/nx-qwik-tailwind-reproduction
Steps to Reproduce
- Generate an app
- Generate lib
- Configure tailwind for both
- Create a custom color class in the library's Tailwind config
- Use the custom color in a component of the library
- Import the library's component into a component of the application.
- Run the app and see how it doesn't work
Nx Report
Node : 16.18.1
OS : darwin arm64
yarn : 1.22.19
Hasher : Native
nx : 16.3.2
@nx/js : 16.3.2
@nx/linter : 16.3.2
@nx/workspace : 16.3.2
@nx/devkit : 16.3.2
@nx/eslint-plugin : 16.3.2
@nrwl/tao : 16.3.2
@nx/vite : 16.3.2
typescript : 5.0.4
---------------------------------------
Community plugins:
qwik-nx : 1.0.4
Failure Logs
No response
Additional Information
The nx utility for Tailwind and React works for Qwik.
const { createGlobPatternsForDependencies } = require('@nx/react/tailwind');
But it would be great if a copy of the same would exist under the qwik-nx namespace.
mikehaas763
Metadata
Metadata
Assignees
Labels
No labels