Skip to content

Commit

Permalink
refactor: remove --hot-only in favor of --hot only
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Mar 19, 2021
1 parent 728effc commit 5c5e400
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
9 changes: 0 additions & 9 deletions bin/cli-flags.js
Expand Up @@ -55,15 +55,6 @@ module.exports = {
delete opts.clientProgress;
},
},
{
name: 'hot-only',
type: Boolean,
description: 'Do not refresh page if HMR fails.',
processor(opts) {
opts.hot = 'only';
delete opts.hotOnly;
},
},
{
name: 'setup-exit-signals',
type: Boolean,
Expand Down
5 changes: 3 additions & 2 deletions test/cli/cli.test.js
Expand Up @@ -26,8 +26,9 @@ describe('CLI', () => {
.catch(done);
});

it('--hot-only', (done) => {
testBin('--hot-only')
// Enable after new webpack-cli release
it.skip('--hot only', (done) => {
testBin('--hot only')
.then((output) => {
expect(output.exitCode).toEqual(0);
expect(output.stdout).toContain('/hot/only-dev-server');
Expand Down

0 comments on commit 5c5e400

Please sign in to comment.