From 68d068dfd3210bc5fe632026531509cba3f1f85b Mon Sep 17 00:00:00 2001 From: Nahuel Veron Date: Sat, 29 Aug 2020 18:01:23 -0300 Subject: [PATCH] Replacing __dirname with process.cwd() --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 86f97be..b08ecd7 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,7 @@ const { sync: loadPostcssConfig } = require('postcss-load-config') module.exports = opts => { // prepare configuration const pcssConfigCtx = { cwd: __dirname, env: process.env.NODE_ENV } - const pcssConfigPath = __dirname + const pcssConfigPath = process.cwd() const pcssConfig = safelyLoadPostcssConfig(pcssConfigCtx, pcssConfigPath, opts) // rescript configuration used when no PostCSS configuration is present