Skip to content

Commit d490533

Browse files
committed
fix: use --open-page without explicitly mentioning --open
1 parent 73dfebc commit d490533

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/utils/normalizeOptions.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ function normalizeOptions(compiler, options) {
112112
if (typeof options.setupExitSignals === 'undefined') {
113113
options.setupExitSignals = true;
114114
}
115+
116+
// normalize open option
117+
if (typeof options.openPage !== 'undefined' && typeof options.open === 'undefined') {
118+
options.open = true;
119+
}
115120
}
116121

117122
module.exports = normalizeOptions;

0 commit comments

Comments
 (0)