From cd9d629febba3a33c00300b48eb69c43dcd87a0e Mon Sep 17 00:00:00 2001 From: Cosmin Popovici Date: Fri, 21 Oct 2022 13:10:26 +0300 Subject: [PATCH] refactor: postcss from path makes @config work in css files --- src/generators/tailwindcss.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generators/tailwindcss.js b/src/generators/tailwindcss.js index 18693037..42a9e245 100644 --- a/src/generators/tailwindcss.js +++ b/src/generators/tailwindcss.js @@ -113,7 +113,7 @@ module.exports = { } return postcss([...toProcess]) - .process(css, {from: undefined}) + .process(css, {from: userFileExists ? userFilePath : undefined}) .then(result => result.css) .catch(error => { throw new SyntaxError(error)