From 5c5e400f79b69d24835cb558cde41ba543922841 Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Fri, 19 Mar 2021 15:28:47 +0530 Subject: [PATCH] refactor: remove `--hot-only` in favor of `--hot only` --- bin/cli-flags.js | 9 --------- test/cli/cli.test.js | 5 +++-- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/bin/cli-flags.js b/bin/cli-flags.js index ba749c8060..992f51caf1 100644 --- a/bin/cli-flags.js +++ b/bin/cli-flags.js @@ -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, diff --git a/test/cli/cli.test.js b/test/cli/cli.test.js index dcff4038f0..b533e7c775 100644 --- a/test/cli/cli.test.js +++ b/test/cli/cli.test.js @@ -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');