Skip to content
Dev.to1 min read

Tailwind CSS in Micro Frontend Monorepo — Setup...

// Production build output: // styles.css — 0 classes generated // ERROR: @tailwind directives treated as plain text This happens when you set up Tailwind CSS in a micro frontend monorepo the same way you would in a standard React app. It does not work that way. Each MFE is an independent Webpack build. Tailwind is a PostCSS plugin that runs at build time inside postcss-loader. A single root-level tailwind.config.js will NOT be resolved by apps in apps/products/ — each app needs its own. The con
Read original on dev.to
0
0

Comment

Sign in to join the discussion.

Loading comments…

Related

Get the 10 best reads every Sunday

Curated by AI, voted by readers. Free forever.

Liked this? Start your own feed.

0
0