Slow build when using greedy globs in the content prop when building

This issue has been tracked since 2022-11-21.


@nuxtjs/tailwindcss: 6.1.3
nuxt: 3.0.0

Reproduction Link

Tried to fork it, but ended up with errors when updating the dependencies to the latest. vue-router errors, so I abandoned that idea.

Steps to reproduce

Add ./node_modules/<organization/package>/**/*.js to the content section of your tailwind config

What is Expected?

A reasonable time for search for js files and strings, <30 seconds.

What is actually happening?

7 minutes of nuxt build


Our organisation is putting our app's styling in other packages. We have set up
./node_modules/@funnel-io/**/*.js which works when building it with vite and other react apps. It seems like a problem for nuxt or this module.

Atinux wrote this answer on 2022-12-22

This is pretty tricky since we don't process anything for this particular Tailwind key 🤔

More Details About Repo
Owner Name nuxt-modules
Repo Name tailwindcss
Full Name nuxt-modules/tailwindcss
Language TypeScript
Created Date 2019-04-04
Updated Date 2023-03-29
Star Count 1285
Watcher Count 12
Fork Count 157
Issue Count 57


Issue Title Created Date Updated Date