Skip to content

Commit 1208aa6

Browse files
feat: add new flag and patch sec dep (#1102)
1 parent 6ad6099 commit 1208aa6

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

bin/config/config-yargs.js

+5
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ module.exports = function(yargs) {
117117
group: BASIC_GROUP,
118118
requiresArg: true
119119
},
120+
"no-cache": {
121+
type: "boolean",
122+
describe: "Disables cached builds",
123+
group: BASIC_GROUP
124+
},
120125
"module-bind": {
121126
type: "string",
122127
describe: "Bind an extension to a loader",

bin/utils/convert-argv.js

+4
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,10 @@ module.exports = function(...args) {
434434
addPlugin(options, new HotModuleReplacementPlugin());
435435
});
436436

437+
ifBooleanArg("no-cache", function() {
438+
options.cache = false;
439+
});
440+
437441
ifBooleanArg("debug", function() {
438442
const LoaderOptionsPlugin = require("webpack").LoaderOptionsPlugin;
439443
addPlugin(

package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)