From c8764d3c1a5e5d837d5ef81b9e780b1c7ba33ef9 Mon Sep 17 00:00:00 2001 From: EGOIST <0x142857@gmail.com> Date: Sat, 18 Feb 2017 13:12:10 +0800 Subject: [PATCH] Do not load config file from `--config` --- lib/style-rewriter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/style-rewriter.js b/lib/style-rewriter.js index b64566402..ece7e0bec 100644 --- a/lib/style-rewriter.js +++ b/lib/style-rewriter.js @@ -59,7 +59,7 @@ module.exports = function (css, map) { } // use the same config loading interface as postcss-loader - loadPostcssConfig({ webpack: this }).catch(() => { + loadPostcssConfig({ webpack: this }, null, { argv: false }).catch(() => { // postcss-load-config throws error when no config file is found, // but for us it's optional. }).then(config => {