You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot exclude files with double extension with config purge field #5198
This seems to be an issue with v3 as well. I don't think it's a bug as much as just not supported, but the only way around it seems like moving stories to their own directory or manually listing each component file under content, rather than using a glob pattern :(
Activity
thomasobrien99 commentedon Dec 21, 2021
This seems to be an issue with v3 as well. I don't think it's a bug as much as just not supported, but the only way around it seems like moving stories to their own directory or manually listing each component file under
content, rather than using a glob pattern :(thecrypticace commentedon Feb 22, 2022
Hey, you can totally do this (at least in Tailwind CSS v3.0+ — I did not check v2 in JIT mode) however the syntax is different. We use the library
fast-globwhich isn't a 1:1 mapping with bash syntax. It uses separate "negative" entries to ignore files or directories which you can read a bit more about here: https://github.com/mrmlnc/fast-glob#how-to-exclude-directory-from-readingIn your case what you'll want to do is include all potential matches:
src/**/*.{ts,tsx}And then use a second negative pattern by adding a leading
!to exclude the files you don't want:!src/**/*.stories.{ts,tsx}You should end up with a config that looks like this