diff --git a/index.js b/index.js index 764f2a4..d9423c0 100644 --- a/index.js +++ b/index.js @@ -125,9 +125,7 @@ Promise.resolve() function rc(ctx, path) { if (argv.use) return Promise.resolve(cliConfig) - // Set argv: false to keep cosmiconfig from attempting to read the --config - // flag from process.argv - return postcssrc(ctx, path, { argv: false }) + return postcssrc(ctx, path) .then(rc => { if (rc.options.from || rc.options.to) { error( diff --git a/package.json b/package.json index 72a0139..836bdae 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "get-stdin": "^6.0.0", "globby": "^8.0.0", "postcss": "^7.0.0", - "postcss-load-config": "^1.1.0", + "postcss-load-config": "^2.0.0", "postcss-reporter": "^5.0.0", "pretty-hrtime": "^1.0.3", "read-cache": "^1.0.0",