Skip to content

Commit 9bf7649

Browse files
egoistyyx990803
authored andcommitted
Do not load config file from --config (#653)
1 parent 3872eaa commit 9bf7649

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/style-rewriter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module.exports = function (css, map) {
5959
}
6060

6161
// use the same config loading interface as postcss-loader
62-
loadPostcssConfig({ webpack: this }).catch(() => {
62+
loadPostcssConfig({ webpack: this }, null, { argv: false }).catch(() => {
6363
// postcss-load-config throws error when no config file is found,
6464
// but for us it's optional.
6565
}).then(config => {

0 commit comments

Comments
 (0)