Tailwind.config.js possible error in content #8876
andrewberryca
started this conversation in
General
Replies: 1 comment
-
Paths are configured as glob patterns, making it easy to match all of the content files in your project without a ton of configuration module.exports = {
content: [
'./src/**/*.{js,jsx,ts,tsx}',
],
// ...
} then you will be able to apply tailwind utility class in all js, jsx, ts, tsx file... |
Beta Was this translation helpful? Give feedback.
0 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.
-
The config stops working when there are spaces between file extensions:
"./src//*.{js,jsx,ts,tsx}" - working
"./src//*.{js, jsx, ts, tsx}" - not working
Should spaces be ignored so either of string will be correct?
Beta Was this translation helpful? Give feedback.
All reactions