-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Closed
Description
What version of Tailwind CSS are you using?
v3.0.2
What build tool (or framework if it abstracts the build tool) are you using?
Parcel 2 👋
What version of Node.js are you using?
16
What operating system are you using?
macOS
Describe your issue
A "standard" PostCSS config like
const path = require("path");
module.exports = {
plugins: [
require('tailwindcss')
]
}causes Tailwind to search for the config file relative to the current working directory because of this
tailwindcss/src/util/resolveConfigPath.js
Lines 46 to 48 in a7263a8
| for (const configFile of ['./tailwind.config.js', './tailwind.config.cjs']) { | |
| try { | |
| const configPath = path.resolve(configFile) |
I think it should instead be relative to the file that's being processed. This way you could also have a single project with multiple config files for different parts.
This might have performance downsides if you currently search just once for a config.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels