No description
`@source not "./src/ba*"` is normalized to base `src` + pattern `/ba*` (the wildcard can't be hoisted into the base), but the pattern-walker's not-directive check only glob-matched the file path itself: `/ba*` never matches `/bar/index.html` since `*` doesn't cross `/`, and the directory pruning only recognized the normalized `/**/*` shape. So wildcard directory exclusions were silently ignored by pattern sources. Follow gitignore semantics instead: a pattern that matches a directory excludes the whole subtree. `NotRule::matches` now tests the path itself and every ancestor directory up to the directive's base, and replaces both the file-level check and the directory pruning check (the `/**/*` sentinel special case falls out naturally). The auto/external walker already behaved correctly because on-disk gitignore semantics apply there natively. |
||
|---|---|---|
| .github | ||
| crates | ||
| integrations | ||
| packages | ||
| patches | ||
| playgrounds | ||
| scripts | ||
| .gitignore | ||
| .prettierignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| CHANGELOG.md | ||
| LICENSE | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| README.md | ||
| rust-toolchain.toml | ||
| turbo.json | ||
| vitest.config.mts | ||
A utility-first CSS framework for rapidly building custom user interfaces.
Documentation
For full documentation, visit tailwindcss.com.
Community
For help, discussion about best practices, or feature ideas:
Discuss Tailwind CSS on GitHub
Contributing
If you're interested in contributing to Tailwind CSS, please read our contributing docs before submitting a pull request.