From 90f7fc63511c66b18e69c9f19ff5864d1bb18843 Mon Sep 17 00:00:00 2001 From: Mirco Bartels Date: Wed, 24 Jan 2024 11:22:37 +0100 Subject: [PATCH] getConfigPath should search for tailwind config from target file --- src/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.js b/src/config.js index 9f2ce8b0..b689927b 100644 --- a/src/config.js +++ b/src/config.js @@ -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' }