@source glob wildcard ** does not discover files with same child folder name as parent folder #18063
Unanswered
spiess-demos
asked this question in
Help
Replies: 1 comment 4 replies
-
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What version of Tailwind CSS are you using?
v4.1.7
What build tool (or framework if it abstracts the build tool) are you using?
Does not matter, occurs with Webpack/postcss-loader as well as Vite.
What version of Node.js are you using?
v20.19.1
What browser are you using?
Chrome 134.0.6998.165
What operating system are you using?
Debian GNU/Linux trixie/sid Kernel 6.12.12-amd64
Reproduction URL
https://stackblitz.com/edit/vitejs-vite-xzdvwn3v?file=src%2Fstyle.css
The stackblitz seems to work in a recent Google Chrome, however Firefox throsw lots of errors (not related to my things, i suppose).
Edit: as @wongjn correctly points out, the reproduction does not reprocuce the issue correctly, i just used a wrong class name coincidentally. However the issue occurs in a real project.
Describe your issue
In a rather large monorepo, we have recently migrated to Tailwind 4 and came across an issue with how
@source
resolves certain globs. We disable auto detection withsource(none)
, to speed things up, and then add certain folders to discover markup using grep syntax. However if a folder happens to contain a folder with the same name, the**
wildcard cannot be used to target the source files.The style.css file:
Folder structure:
With the above
@source
configuration, markup in addon should be discovered as well as in otherAddon. However this is not the case, content in addon (which repeats the name of the outermost addon folder) is only discovered if no**
wildcard is used to target it.Beta Was this translation helpful? Give feedback.
All reactions