We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2322cb8 commit 8455220Copy full SHA for 8455220
index.js
@@ -119,7 +119,9 @@ Promise.resolve()
119
function rc(ctx, path) {
120
if (argv.use) return Promise.resolve()
121
122
- return postcssrc(ctx, path)
+ // Set argv: false to keep cosmiconfig from attempting to read the --config
123
+ // flag from process.argv
124
+ return postcssrc(ctx, path, { argv: false })
125
.then(rc => {
126
if (rc.options.from || rc.options.to) {
127
error(
0 commit comments