Skip to content

Commit eddba1f

Browse files
authored
Mention that node_modules is ignored by default (#2298)
As of v4.1.0, Tailwind ignores the `node_modules` directory by default, regardless of your `.gitignore` settings. * https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md#410---2025-04-01 > Ignore `node_modules` by default (can be overridden by `@source` … rules) (tailwindlabs/tailwindcss#17255) This is worth mentioning in the relevant sections of the documentation: * [Which files are scanned](https://tailwindcss-com-git-fork-rozsazoltan-update-604522-tailwindlabs.vercel.app/docs/detecting-classes-in-source-files#which-files-are-scanned) - Preview
1 parent b29b3f3 commit eddba1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/docs/detecting-classes-in-source-files.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ As long as you always use complete class names in your code, Tailwind will gener
135135
Tailwind will scan every file in your project for class names, except in the following cases:
136136

137137
- Files that are in your `.gitignore` file
138+
- Files in the `node_modules` directory
138139
- Binary files like images, videos, or zip files
139140
- CSS files
140141
- Common package manager lock files

0 commit comments

Comments
 (0)