Skip to content

Commit c089425

Browse files
authored
Fix webpack#5213, set boolean options in config file.
1 parent 5b119e7 commit c089425

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

bin/convert-argv.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ module.exports = function(yargs, argv, convertOptions) {
173173
var noOutputFilenameDefined = !options.output || !options.output.filename;
174174

175175
function ifArg(name, fn, init, finalize) {
176+
if (typeof options[name] === "boolean") {
177+
argv[name] = options[name];
178+
}
176179
if(Array.isArray(argv[name])) {
177180
if(init) {
178181
init();

0 commit comments

Comments
 (0)