Skip to content

Commit

Permalink
Replaced path.resolve with path.join in config loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderOpran committed Oct 25, 2019
1 parent 8d6a028 commit 08f2199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class Purgecss {
const pathConfig = typeof configFile === 'undefined' ? CONFIG_FILENAME : configFile
let options
try {
const t = path.resolve(process.cwd(), pathConfig).replace(/\\/g, '/')
const t = path.join(process.cwd(), pathConfig)
options = require(t)
} catch (e) {
throw new Error(ERROR_CONFIG_FILE_LOADING + e.message)
Expand Down

0 comments on commit 08f2199

Please sign in to comment.