Closed
Description
What version of Tailwind CSS are you using?
3.4.0
What build tool (or framework if it abstracts the build tool) are you using?
Bare minimum repro
What version of Node.js are you using?
18
What browser are you using?
Chrome
What operating system are you using?
macOs
Reproduction URL
https://github.com/jide/tailwind-config-path-bug/tree/main
Describe your issue
When a path contains both brackets and parenthesis, the changes are not detected.
In the example, here is the file tree:
src/1.html
src/(test)/2.html
src/[test]/3.html
src/[test]/(test)/4.html
Each file has this content:
mr-(the corresponding number)
The config:
module.exports = {
content: [
"./src/1.html",
"./src/(test)/2.html",
"./src/[test]/3.html",
"./src/[test]/(test)/4.html",
],
theme: {
extend: {},
},
plugins: [],
};
When starting
npx tailwindcss -i ./src/input.css -o ./src/output.css --watch
The output is:
.mr-1 {
margin-right: 0.25rem;
}
.mr-2 {
margin-right: 0.5rem;
}
.mr-3 {
margin-right: 0.75rem;
}
mr-4 is missing.
Metadata
Metadata
Assignees
Labels
No labels