Skip to content

Commit 90f7fc6

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

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
@@ -156,7 +156,7 @@ function getConfigPath(options, baseDir) {
156156

157157
let configPath
158158
try {
159-
configPath = escalade(baseDir, (_dir, names) => {
159+
configPath = escalade(options.filepath ?? baseDir, (_dir, names) => {
160160
if (names.includes('tailwind.config.js')) {
161161
return 'tailwind.config.js'
162162
}

0 commit comments

Comments
 (0)