From b45894daed378165ff3fc65c71aa038201fe9b41 Mon Sep 17 00:00:00 2001 From: EGOIST <0x142857@gmail.com> Date: Sat, 18 Feb 2017 13:06:49 +0800 Subject: [PATCH 1/2] Do not load config file from `--config` --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 9f00cba0..57aee987 100644 --- a/index.js +++ b/index.js @@ -69,7 +69,7 @@ module.exports = function (source, map) { throw new Error('PostCSS plugin pack is supported ' + 'only when use plugins in webpack config'); } - return loadConfig({ webpack: loader }, configPath); + return loadConfig({ webpack: loader }, configPath, {argv: false}); } }).then(function (config) { if ( !config ) config = { }; From 1ed86d8f291824e505729cfd13af1e51f4f28a40 Mon Sep 17 00:00:00 2001 From: EGOIST <0x142857@gmail.com> Date: Sat, 18 Feb 2017 13:08:08 +0800 Subject: [PATCH 2/2] tweaks --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 57aee987..36b54ffe 100644 --- a/index.js +++ b/index.js @@ -69,7 +69,7 @@ module.exports = function (source, map) { throw new Error('PostCSS plugin pack is supported ' + 'only when use plugins in webpack config'); } - return loadConfig({ webpack: loader }, configPath, {argv: false}); + return loadConfig({ webpack: loader }, configPath, { argv: false }); } }).then(function (config) { if ( !config ) config = { };