Skip to content

Commit 1dde662

Browse files
authored
refactor: remove --hot-only in favor of --hot only (#3093)
BREAKING CHANGE: `--hot-only` option was removed
1 parent 728effc commit 1dde662

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

bin/cli-flags.js

-9
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,6 @@ module.exports = {
5555
delete opts.clientProgress;
5656
},
5757
},
58-
{
59-
name: 'hot-only',
60-
type: Boolean,
61-
description: 'Do not refresh page if HMR fails.',
62-
processor(opts) {
63-
opts.hot = 'only';
64-
delete opts.hotOnly;
65-
},
66-
},
6758
{
6859
name: 'setup-exit-signals',
6960
type: Boolean,

test/cli/cli.test.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ describe('CLI', () => {
2626
.catch(done);
2727
});
2828

29-
it('--hot-only', (done) => {
30-
testBin('--hot-only')
29+
// Enable after new webpack-cli release
30+
it.skip('--hot only', (done) => {
31+
testBin('--hot only')
3132
.then((output) => {
3233
expect(output.exitCode).toEqual(0);
3334
expect(output.stdout).toContain('/hot/only-dev-server');

0 commit comments

Comments
 (0)