Skip to content

Commit 4c6ff77

Browse files
committed
getConfigPath should search for tailwind config from target file
1 parent 1fa24c2 commit 4c6ff77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function loadTailwindConfig(baseDir, tailwindConfigPath) {
151151
*/
152152
function getConfigPath(options, baseDir) {
153153
if (options.tailwindConfig) {
154-
return path.resolve(baseDir, options.tailwindConfig)
154+
return path.resolve(options.filepath, options.tailwindConfig)
155155
}
156156

157157
let configPath

0 commit comments

Comments
 (0)