[v4] How to ignore specific files using "@source not" and glob pattern? #18550
Unanswered
mek-earnin
asked this question in
Help
Replies: 0 comments
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 I want to do
Configuring a vite app to detect class names in the design system package and exclude custom styles in storybook files and unit test files.
Context
Component.tsx
,Component.stories.tsx
, andComponent.spec.tsx
[email protected]
,@tailwindcss/[email protected]
,[email protected]
What I have tried
I added an arbitrary class i.e.,
w-[7777px]
, in certain files and tried building it withthen inspected whether the class is included in
output.css
.1. file glob with
@source not
(not working)2.
@config
withcontent
(not working)Potential issues
@source
or the new Scanner doesn't actually support file level glob but only supports directory level glob?@source "../../lib/ui/**/*.bin";
, although unclear whether it works with@source not
or not.Beta Was this translation helpful? Give feedback.
All reactions