Skip to content

Commit

Permalink
feat: add new flag and patch sec dep (#1102)
Browse files Browse the repository at this point in the history
  • Loading branch information
evenstensberg committed Oct 31, 2019
1 parent 6ad6099 commit 1208aa6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions bin/config/config-yargs.js
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions bin/utils/convert-argv.js
Expand Up @@ -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(
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1208aa6

Please sign in to comment.