diff --git a/src/index.js b/src/index.js index 906d8137..9c8a705a 100644 --- a/src/index.js +++ b/src/index.js @@ -52,7 +52,7 @@ class Purgecss { const pathConfig = typeof configFile === 'undefined' ? CONFIG_FILENAME : configFile let options try { - const t = path.resolve(process.cwd(), pathConfig) + const t = path.join(process.cwd(), pathConfig) options = require(t) } catch (e) { throw new Error(ERROR_CONFIG_FILE_LOADING + e.message)