Skip to content

Commit 204c4a5

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

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/utils/normalizeOptions.js

+8
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,14 @@ function normalizeOptions(compiler, options) {
112112
if (typeof options.setupExitSignals === 'undefined') {
113113
options.setupExitSignals = true;
114114
}
115+
116+
// normalize open option
117+
if (
118+
typeof options.openPage !== 'undefined' &&
119+
typeof options.open === 'undefined'
120+
) {
121+
options.open = true;
122+
}
115123
}
116124

117125
module.exports = normalizeOptions;

0 commit comments

Comments
 (0)