From 63c019e021c3e1d0ef2922b87f1d91f92a5d0eea Mon Sep 17 00:00:00 2001 From: Richard Lindsey Date: Mon, 21 Nov 2016 12:58:01 -0600 Subject: [PATCH] =?UTF-8?q?Adding=20support=20for=20Webpack=202,=20which?= =?UTF-8?q?=20doesn=E2=80=99t=20allow=20custom=20args=20on=20the=20CLI,=20?= =?UTF-8?q?you=20have=20to=20use=20env.argName=20instead=20(https://github?= =?UTF-8?q?.com/webpack/webpack/issues/2254#issuecomment-203528744).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d4a3e0b..e0173c1 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,7 @@ var assign = require('object-assign'); var getCLIOptions = function () { var modules = []; process.argv.forEach(function (val, index, array) { - if (val.indexOf('--link') > -1) { + if (val.indexOf('--link') > -1 || val.indexOf('--env.link') > -1) { var args = val.split('=')[1]; if (args) { modules = args.split(',') } }