From 54f459c1a7b3f9a6db53324345e29b7dd4ebf525 Mon Sep 17 00:00:00 2001 From: Even Stensberg Date: Sun, 27 Oct 2019 02:00:36 +0200 Subject: [PATCH] feat: add new flag and patch sec dep --- bin/config/config-yargs.js | 5 +++++ bin/utils/convert-argv.js | 4 ++++ package-lock.json | 6 +++--- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/bin/config/config-yargs.js b/bin/config/config-yargs.js index 3f1f96130b8..dc78f95a44d 100644 --- a/bin/config/config-yargs.js +++ b/bin/config/config-yargs.js @@ -117,6 +117,11 @@ module.exports = function(yargs) { group: BASIC_GROUP, requiresArg: true }, + "no-cache": { + type: "boolean", + describe: "Disables cached builds", + group: BASIC_GROUP + }, "module-bind": { type: "string", describe: "Bind an extension to a loader", diff --git a/bin/utils/convert-argv.js b/bin/utils/convert-argv.js index a3b90911c3b..8b61e17f4e2 100644 --- a/bin/utils/convert-argv.js +++ b/bin/utils/convert-argv.js @@ -434,6 +434,10 @@ module.exports = function(...args) { addPlugin(options, new HotModuleReplacementPlugin()); }); + ifBooleanArg("no-cache", function() { + options.cache = false; + }); + ifBooleanArg("debug", function() { const LoaderOptionsPlugin = require("webpack").LoaderOptionsPlugin; addPlugin( diff --git a/package-lock.json b/package-lock.json index 6a04b0093f2..afc78116900 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9122,9 +9122,9 @@ "dev": true }, "https-proxy-agent": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.2.2.tgz", - "integrity": "sha512-c8Ndjc9Bkpfx/vCJueCPy0jlP4ccCCSNDp8xwCZzPjKJUm+B+u9WX2x98Qx4n1PiMNTWo3D7KK5ifNV/yJyRzg==", + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz", + "integrity": "sha512-OmvfoQ53WLjtA9HeYP9RNrWMJzzAz1JGaSFr1nijg0PVR1JaD/xbJq1mdEIIlxGpXp9eSe/O2LgU9DJmTPd0Eg==", "dev": true, "requires": { "agent-base": "^4.3.0",