Skip to content

Commit

Permalink
getConfigPath should search for tailwind config from target file
Browse files Browse the repository at this point in the history
  • Loading branch information
mircoba committed Jan 24, 2024
1 parent 1fa24c2 commit 90f7fc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function getConfigPath(options, baseDir) {

let configPath
try {
configPath = escalade(baseDir, (_dir, names) => {
configPath = escalade(options.filepath ?? baseDir, (_dir, names) => {
if (names.includes('tailwind.config.js')) {
return 'tailwind.config.js'
}
Expand Down

0 comments on commit 90f7fc6

Please sign in to comment.