From 4c6ff77d24ceac0c9de91dccbe0593238f2d80d1 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..8016f139 100644 --- a/src/config.js +++ b/src/config.js @@ -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