Closed xeinebiu closed 4 months ago
With a heavy heart, I have decided to discontinue support for Tailwind as the initial maintainer no longer has time to maintain it.
With a heavy heart, I have decided to discontinue support for Tailwind as the initial maintainer no longer has time to maintain it.
Just posting for anyone if they need help, the solution is to add explicitly the projects that depend on tailwind on the app configuration
const { createGlobPatternsForDependencies } = require('@nx/react/tailwind'); const { join } = require('path'); const { parkwindPlugin } = require('@park-ui/tailwind-plugin');
/ @type {import('tailwindcss').Config} */ module.exports = { content: [ join( __dirname, '{src,pages,components,app}/*/!(.stories|.spec).{ts,tsx,html}', ), join('libs/theme/src/lib//*.{js,ts,jsx,tsx}'), ...createGlobPatternsForDependencies(__dirname), ], theme: { extend: {}, }, plugins: [parkwindPlugin], darkMode: ['class'], };
parkwindPlugin
does nothing on NX Monorepo.Dependencies
tailwind.config.js
const { createGlobPatternsForDependencies } = require('@nx/react/tailwind'); const { join } = require('path');
module.exports = { content: [ join( dirname, '{src,pages,components,app}/*/!(.stories|.spec).{ts,tsx,html}', ), ...createGlobPatternsForDependencies(dirname), ], theme: { extend: {}, }, plugins: [parkwindPlugin], darkMode: ['class'], };