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 4c6ff77
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 @@ -151,7 +151,7 @@ function loadTailwindConfig(baseDir, tailwindConfigPath) {
*/
function getConfigPath(options, baseDir) {
if (options.tailwindConfig) {
return path.resolve(baseDir, options.tailwindConfig)
return path.resolve(options.filepath, options.tailwindConfig)
}

let configPath
Expand Down

0 comments on commit 4c6ff77

Please sign in to comment.