Skip to content

Commit

Permalink
Fix the config file path of windows while still using path.resolve.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderOpran committed Oct 25, 2019
1 parent a02058d commit 8d6a028
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)
const t = path.resolve(process.cwd(), pathConfig).replace(/\\/g, '/')
options = require(t)
} catch (e) {
throw new Error(ERROR_CONFIG_FILE_LOADING + e.message)
Expand Down

0 comments on commit 8d6a028

Please sign in to comment.