From bf287f12dd2332df360c44fae7e88642d9ac1937 Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Wed, 10 Aug 2022 17:40:08 +0530 Subject: [PATCH] chore: remove obselete snapshots for webpack@4 and webpack-dev-server@3 (#3361) --- .../__snapshots__/CLI.test.js.snap.webpack4 | 31 - .../__snapshots__/stats.test.js.snap.webpack4 | 15 - .../target-flag.test.js.snap.webpack4 | 14 - .../node-test.test.js.snap.webpack4 | 3 - .../unknown.test.js.snap.webpack4 | 168 - .../with-config-path.test.js.snap.webpack4 | 42 - .../without-config-path.test.js.snap.webpack4 | 8 - ...ut-config-path-error.test.js.snap.webpack4 | 10 - ...-multi-compiler-mode.test.js.snap.webpack4 | 8 - ...ath-no-configuration.test.js.snap.webpack4 | 5 - .../without-config-path.test.js.snap.webpack4 | 8 - .../help.test.js.snap.devServer3.webpack4 | 2704 ---------------- .../help.test.js.snap.devServer3.webpack5 | 2773 ----------------- .../help.test.js.snap.devServer4.webpack4 | 2122 ------------- .../__snapshots__/init.test.js.snap.webpack4 | 1278 -------- ...rve-basic.test.js.snap.devServer3.webpack4 | 83 - ...rve-basic.test.js.snap.devServer3.webpack5 | 78 - ...rve-basic.test.js.snap.devServer4.webpack4 | 255 -- ...id-schema.test.js.snap.devServer3.webpack4 | 28 - ...id-schema.test.js.snap.devServer3.webpack5 | 26 - ...id-schema.test.js.snap.devServer4.webpack4 | 32 - ...-variable.test.js.snap.devServer3.webpack4 | 3 - ...-variable.test.js.snap.devServer3.webpack5 | 3 - ...-variable.test.js.snap.devServer4.webpack4 | 9 - ...om-config.test.js.snap.devServer3.webpack4 | 5 - ...om-config.test.js.snap.devServer3.webpack5 | 5 - ...om-config.test.js.snap.devServer4.webpack4 | 33 - .../version.test.js.snap.webpack4 | 333 -- 28 files changed, 10082 deletions(-) delete mode 100644 test/api/__snapshots__/CLI.test.js.snap.webpack4 delete mode 100644 test/build/stats/flags/__snapshots__/stats.test.js.snap.webpack4 delete mode 100644 test/build/target/flag-test/__snapshots__/target-flag.test.js.snap.webpack4 delete mode 100644 test/build/target/node/__snapshots__/node-test.test.js.snap.webpack4 delete mode 100644 test/build/unknown/__snapshots__/unknown.test.js.snap.webpack4 delete mode 100644 test/configtest/with-config-path/__snapshots__/with-config-path.test.js.snap.webpack4 delete mode 100644 test/configtest/without-config-path-custom-extension/__snapshots__/without-config-path.test.js.snap.webpack4 delete mode 100644 test/configtest/without-config-path-error/__snapshots__/without-config-path-error.test.js.snap.webpack4 delete mode 100644 test/configtest/without-config-path-multi-compiler-mode/__snapshots__/without-config-path-multi-compiler-mode.test.js.snap.webpack4 delete mode 100644 test/configtest/without-config-path-no-configuration/__snapshots__/without-config-path-no-configuration.test.js.snap.webpack4 delete mode 100644 test/configtest/without-config-path/__snapshots__/without-config-path.test.js.snap.webpack4 delete mode 100644 test/help/__snapshots__/help.test.js.snap.devServer3.webpack4 delete mode 100644 test/help/__snapshots__/help.test.js.snap.devServer3.webpack5 delete mode 100644 test/help/__snapshots__/help.test.js.snap.devServer4.webpack4 delete mode 100644 test/init/__snapshots__/init.test.js.snap.webpack4 delete mode 100644 test/serve/basic/__snapshots__/serve-basic.test.js.snap.devServer3.webpack4 delete mode 100644 test/serve/basic/__snapshots__/serve-basic.test.js.snap.devServer3.webpack5 delete mode 100644 test/serve/basic/__snapshots__/serve-basic.test.js.snap.devServer4.webpack4 delete mode 100644 test/serve/invalid-schema/__snapshots__/invalid-schema.test.js.snap.devServer3.webpack4 delete mode 100644 test/serve/invalid-schema/__snapshots__/invalid-schema.test.js.snap.devServer3.webpack5 delete mode 100644 test/serve/invalid-schema/__snapshots__/invalid-schema.test.js.snap.devServer4.webpack4 delete mode 100644 test/serve/serve-variable/__snapshots__/serve-variable.test.js.snap.devServer3.webpack4 delete mode 100644 test/serve/serve-variable/__snapshots__/serve-variable.test.js.snap.devServer3.webpack5 delete mode 100644 test/serve/serve-variable/__snapshots__/serve-variable.test.js.snap.devServer4.webpack4 delete mode 100644 test/serve/with-custom-port/__snapshots__/serve-custom-config.test.js.snap.devServer3.webpack4 delete mode 100644 test/serve/with-custom-port/__snapshots__/serve-custom-config.test.js.snap.devServer3.webpack5 delete mode 100644 test/serve/with-custom-port/__snapshots__/serve-custom-config.test.js.snap.devServer4.webpack4 delete mode 100644 test/version/__snapshots__/version.test.js.snap.webpack4 diff --git a/test/api/__snapshots__/CLI.test.js.snap.webpack4 b/test/api/__snapshots__/CLI.test.js.snap.webpack4 deleted file mode 100644 index 50607abaa35..00000000000 --- a/test/api/__snapshots__/CLI.test.js.snap.webpack4 +++ /dev/null @@ -1,31 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`CLI API custom help output should display help information 1`] = ` -Array [ - Array [ - "Usage: webpack --color [value]", - ], - Array [ - "Description: any color", - ], - Array [ - "Default value: \\"blue\\"", - ], - Array [ - "", - ], - Array [ - "To see list of all supported commands and options run 'webpack --help=verbose'. -", - ], - Array [ - "Webpack documentation: https://webpack.js.org/.", - ], - Array [ - "CLI documentation: https://webpack.js.org/api/cli/.", - ], - Array [ - "Made with ♥ by the webpack team.", - ], -] -`; diff --git a/test/build/stats/flags/__snapshots__/stats.test.js.snap.webpack4 b/test/build/stats/flags/__snapshots__/stats.test.js.snap.webpack4 deleted file mode 100644 index c89dd9b887a..00000000000 --- a/test/build/stats/flags/__snapshots__/stats.test.js.snap.webpack4 +++ /dev/null @@ -1,15 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`stats flag should log error when an unknown flag stats value is passed: stderr 1`] = ` -"[webpack-cli] Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - - configuration.stats should be one of these: - object { all?, assets?, assetsSort?, builtAt?, cached?, cachedAssets?, children?, chunkGroups?, chunkModules?, chunkOrigins?, chunks?, chunksSort?, colors?, context?, depth?, entrypoints?, env?, errorDetails?, errors?, exclude?, excludeAssets?, excludeModules?, hash?, logging?, loggingDebug?, loggingTrace?, maxModules?, moduleAssets?, moduleTrace?, modules?, modulesSort?, nestedModules?, optimizationBailout?, outputPath?, performance?, providedExports?, publicPath?, reasons?, source?, timings?, usedExports?, version?, warnings?, warningsFilter? } | boolean | \\"none\\" | \\"errors-only\\" | \\"minimal\\" | \\"normal\\" | \\"detailed\\" | \\"verbose\\" | \\"errors-warnings\\" - -> Used by the webpack CLI program to pass stats options. - Details: - * configuration.stats should be an object. - * configuration.stats should be a boolean. - * configuration.stats should be one of these: - \\"none\\" | \\"errors-only\\" | \\"minimal\\" | \\"normal\\" | \\"detailed\\" | \\"verbose\\" | \\"errors-warnings\\"" -`; - -exports[`stats flag should log error when an unknown flag stats value is passed: stdout 1`] = `""`; diff --git a/test/build/target/flag-test/__snapshots__/target-flag.test.js.snap.webpack4 b/test/build/target/flag-test/__snapshots__/target-flag.test.js.snap.webpack4 deleted file mode 100644 index 2a2bfa720fe..00000000000 --- a/test/build/target/flag-test/__snapshots__/target-flag.test.js.snap.webpack4 +++ /dev/null @@ -1,14 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`--target flag should throw error with invalid value for --target: stderr 1`] = ` -"[webpack-cli] Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - - configuration.target should be one of these: - \\"web\\" | \\"webworker\\" | \\"node\\" | \\"async-node\\" | \\"node-webkit\\" | \\"electron-main\\" | \\"electron-renderer\\" | \\"electron-preload\\" | function - -> Environment to build for - Details: - * configuration.target should be one of these: - \\"web\\" | \\"webworker\\" | \\"node\\" | \\"async-node\\" | \\"node-webkit\\" | \\"electron-main\\" | \\"electron-renderer\\" | \\"electron-preload\\" - * configuration.target should be an instance of function" -`; - -exports[`--target flag should throw error with invalid value for --target: stdout 1`] = `""`; diff --git a/test/build/target/node/__snapshots__/node-test.test.js.snap.webpack4 b/test/build/target/node/__snapshots__/node-test.test.js.snap.webpack4 deleted file mode 100644 index a01a6ead144..00000000000 --- a/test/build/target/node/__snapshots__/node-test.test.js.snap.webpack4 +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Node target should emit the correct code: stderr 1`] = `""`; diff --git a/test/build/unknown/__snapshots__/unknown.test.js.snap.webpack4 b/test/build/unknown/__snapshots__/unknown.test.js.snap.webpack4 deleted file mode 100644 index 67cf909cdb1..00000000000 --- a/test/build/unknown/__snapshots__/unknown.test.js.snap.webpack4 +++ /dev/null @@ -1,168 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`unknown behaviour should log an error if an unknown flag is passed #2: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '-u' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`unknown behaviour should log an error if an unknown flag is passed #2: stdout 1`] = `""`; - -exports[`unknown behaviour should log an error if an unknown flag is passed #3: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '-u' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`unknown behaviour should log an error if an unknown flag is passed #3: stdout 1`] = `""`; - -exports[`unknown behaviour should log an error if an unknown flag is passed #4: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '-u' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`unknown behaviour should log an error if an unknown flag is passed #4: stdout 1`] = `""`; - -exports[`unknown behaviour should log an error if an unknown flag is passed #5: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '-u' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`unknown behaviour should log an error if an unknown flag is passed #5: stdout 1`] = `""`; - -exports[`unknown behaviour should log an error if an unknown flag is passed and includes =: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '--unknown=foo' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`unknown behaviour should log an error if an unknown flag is passed and includes =: stdout 1`] = `""`; - -exports[`unknown behaviour should log an error if an unknown flag is passed and suggests the closest match to an unknown flag #2: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '--output-fileneme' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`unknown behaviour should log an error if an unknown flag is passed and suggests the closest match to an unknown flag #2: stdout 1`] = `""`; - -exports[`unknown behaviour should log an error if an unknown flag is passed and suggests the closest match to an unknown flag #3: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '--output-library-auxiliary-comment-commnjs' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`unknown behaviour should log an error if an unknown flag is passed and suggests the closest match to an unknown flag #3: stdout 1`] = `""`; - -exports[`unknown behaviour should log an error if an unknown flag is passed and suggests the closest match to an unknown flag using "b" command: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '--entyr' -[webpack-cli] Did you mean '--entry'? -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`unknown behaviour should log an error if an unknown flag is passed and suggests the closest match to an unknown flag using "b" command: stdout 1`] = `""`; - -exports[`unknown behaviour should log an error if an unknown flag is passed and suggests the closest match to an unknown flag using "bundle" command: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '--entyr' -[webpack-cli] Did you mean '--entry'? -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`unknown behaviour should log an error if an unknown flag is passed and suggests the closest match to an unknown flag using "bundle" command: stdout 1`] = `""`; - -exports[`unknown behaviour should log an error if an unknown flag is passed and suggests the closest match to an unknown flag using "i" command: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '--outpyt' -[webpack-cli] Did you mean '--output'? -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`unknown behaviour should log an error if an unknown flag is passed and suggests the closest match to an unknown flag using "i" command: stdout 1`] = `""`; - -exports[`unknown behaviour should log an error if an unknown flag is passed and suggests the closest match to an unknown flag using "info" command: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '--outpyt' -[webpack-cli] Did you mean '--output'? -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`unknown behaviour should log an error if an unknown flag is passed and suggests the closest match to an unknown flag using "info" command: stdout 1`] = `""`; - -exports[`unknown behaviour should log an error if an unknown flag is passed and suggests the closest match to an unknown flag: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '--entyr' -[webpack-cli] Did you mean '--entry'? -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`unknown behaviour should log an error if an unknown flag is passed and suggests the closest match to an unknown flag: stdout 1`] = `""`; - -exports[`unknown behaviour should log an error if an unknown flag is passed using "b" command: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '--unknown' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`unknown behaviour should log an error if an unknown flag is passed using "b" command: stdout 1`] = `""`; - -exports[`unknown behaviour should log an error if an unknown flag is passed using "bundle" command #2: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '--unknown' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`unknown behaviour should log an error if an unknown flag is passed using "bundle" command #2: stdout 1`] = `""`; - -exports[`unknown behaviour should log an error if an unknown flag is passed using "bundle" command: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '--unknown' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`unknown behaviour should log an error if an unknown flag is passed using "bundle" command: stdout 1`] = `""`; - -exports[`unknown behaviour should log an error if an unknown flag is passed using "i" command: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '--unknown' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`unknown behaviour should log an error if an unknown flag is passed using "i" command: stderr 2`] = ` -"[webpack-cli] Error: Unknown option '--unknown' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`unknown behaviour should log an error if an unknown flag is passed using "i" command: stdout 1`] = `""`; - -exports[`unknown behaviour should log an error if an unknown flag is passed using "i" command: stdout 2`] = `""`; - -exports[`unknown behaviour should log an error if an unknown flag is passed using "info" command: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '--unknown' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`unknown behaviour should log an error if an unknown flag is passed using "info" command: stdout 1`] = `""`; - -exports[`unknown behaviour should log an error if an unknown flag is passed: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '--unknown' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`unknown behaviour should log an error if an unknown flag is passed: stdout 1`] = `""`; - -exports[`unknown behaviour should log error and provide suggestion if an unknown command passed: stderr 1`] = ` -"[webpack-cli] Unknown command or entry 'serverr' -[webpack-cli] Did you mean 'serve' (alias 'server, s')? -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`unknown behaviour should log error and provide suggestion if an unknown command passed: stdout 1`] = `""`; - -exports[`unknown behaviour should log error and respect --color flag: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '--unknown' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`unknown behaviour should log error and respect --color flag: stdout 1`] = `""`; - -exports[`unknown behaviour should log error for unknown flag and respect --no-color: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '--unknown' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`unknown behaviour should log error for unknown flag and respect --no-color: stdout 1`] = `""`; - -exports[`unknown behaviour should log error if an unknown command passed: stderr 1`] = ` -"[webpack-cli] Unknown command or entry 'qqq' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`unknown behaviour should log error if an unknown command passed: stdout 1`] = `""`; diff --git a/test/configtest/with-config-path/__snapshots__/with-config-path.test.js.snap.webpack4 b/test/configtest/with-config-path/__snapshots__/with-config-path.test.js.snap.webpack4 deleted file mode 100644 index 93e1e7068e9..00000000000 --- a/test/configtest/with-config-path/__snapshots__/with-config-path.test.js.snap.webpack4 +++ /dev/null @@ -1,42 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`'configtest' command with the configuration path option should throw error if configuration does not exist: stderr 1`] = `"[webpack-cli] Failed to load '/test/configtest/with-config-path/a.js' config"`; - -exports[`'configtest' command with the configuration path option should throw error if configuration does not exist: stdout 1`] = `""`; - -exports[`'configtest' command with the configuration path option should throw syntax error: stderr 1`] = ` -"[webpack-cli] Failed to load '/test/configtest/with-config-path/syntax-error.config.js' config -[webpack-cli] /test/configtest/with-config-path/syntax-error.config.js:5 - target: 'node'; - ^ - -SyntaxError: - at stack" -`; - -exports[`'configtest' command with the configuration path option should throw syntax error: stdout 1`] = `""`; - -exports[`'configtest' command with the configuration path option should throw validation error: stderr 1`] = ` -"[webpack-cli] Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - - configuration.mode should be one of these: - \\"development\\" | \\"production\\" | \\"none\\" - -> Enable production optimizations or development hints." -`; - -exports[`'configtest' command with the configuration path option should throw validation error: stdout 1`] = `"[webpack-cli] Validate '/test/configtest/with-config-path/error.config.js'."`; - -exports[`'configtest' command with the configuration path option should validate the config with alias 't': stderr 1`] = ` -"[webpack-cli] Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - - configuration.mode should be one of these: - \\"development\\" | \\"production\\" | \\"none\\" - -> Enable production optimizations or development hints." -`; - -exports[`'configtest' command with the configuration path option should validate the config with alias 't': stdout 1`] = `"[webpack-cli] Validate '/test/configtest/with-config-path/error.config.js'."`; - -exports[`'configtest' command with the configuration path option should validate webpack config successfully: stderr 1`] = `""`; - -exports[`'configtest' command with the configuration path option should validate webpack config successfully: stdout 1`] = ` -"[webpack-cli] Validate '/test/configtest/with-config-path/basic.config.js'. -[webpack-cli] There are no validation errors in the given webpack configuration." -`; diff --git a/test/configtest/without-config-path-custom-extension/__snapshots__/without-config-path.test.js.snap.webpack4 b/test/configtest/without-config-path-custom-extension/__snapshots__/without-config-path.test.js.snap.webpack4 deleted file mode 100644 index c3bdec0cf2d..00000000000 --- a/test/configtest/without-config-path-custom-extension/__snapshots__/without-config-path.test.js.snap.webpack4 +++ /dev/null @@ -1,8 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`'configtest' command without the configuration path option should validate default configuration: stderr 1`] = `""`; - -exports[`'configtest' command without the configuration path option should validate default configuration: stdout 1`] = ` -"[webpack-cli] Validate '/test/configtest/without-config-path-custom-extension/webpack.config.json'. -[webpack-cli] There are no validation errors in the given webpack configuration." -`; diff --git a/test/configtest/without-config-path-error/__snapshots__/without-config-path-error.test.js.snap.webpack4 b/test/configtest/without-config-path-error/__snapshots__/without-config-path-error.test.js.snap.webpack4 deleted file mode 100644 index 9bd48a0450c..00000000000 --- a/test/configtest/without-config-path-error/__snapshots__/without-config-path-error.test.js.snap.webpack4 +++ /dev/null @@ -1,10 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`'configtest' command without the configuration path option should validate default configuration: stderr 1`] = ` -"[webpack-cli] Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - - configuration.mode should be one of these: - \\"development\\" | \\"production\\" | \\"none\\" - -> Enable production optimizations or development hints." -`; - -exports[`'configtest' command without the configuration path option should validate default configuration: stdout 1`] = `"[webpack-cli] Validate '/test/configtest/without-config-path-error/webpack.config.js'."`; diff --git a/test/configtest/without-config-path-multi-compiler-mode/__snapshots__/without-config-path-multi-compiler-mode.test.js.snap.webpack4 b/test/configtest/without-config-path-multi-compiler-mode/__snapshots__/without-config-path-multi-compiler-mode.test.js.snap.webpack4 deleted file mode 100644 index a06df430928..00000000000 --- a/test/configtest/without-config-path-multi-compiler-mode/__snapshots__/without-config-path-multi-compiler-mode.test.js.snap.webpack4 +++ /dev/null @@ -1,8 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`'configtest' command without the configuration path option should validate default configuration: stderr 1`] = `""`; - -exports[`'configtest' command without the configuration path option should validate default configuration: stdout 1`] = ` -"[webpack-cli] Validate '/test/configtest/without-config-path-multi-compiler-mode/webpack.config.js'. -[webpack-cli] There are no validation errors in the given webpack configuration." -`; diff --git a/test/configtest/without-config-path-no-configuration/__snapshots__/without-config-path-no-configuration.test.js.snap.webpack4 b/test/configtest/without-config-path-no-configuration/__snapshots__/without-config-path-no-configuration.test.js.snap.webpack4 deleted file mode 100644 index e5b446ae633..00000000000 --- a/test/configtest/without-config-path-no-configuration/__snapshots__/without-config-path-no-configuration.test.js.snap.webpack4 +++ /dev/null @@ -1,5 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`'configtest' command without the configuration path option should validate default configuration: stderr 1`] = `"[webpack-cli] No configuration found."`; - -exports[`'configtest' command without the configuration path option should validate default configuration: stdout 1`] = `""`; diff --git a/test/configtest/without-config-path/__snapshots__/without-config-path.test.js.snap.webpack4 b/test/configtest/without-config-path/__snapshots__/without-config-path.test.js.snap.webpack4 deleted file mode 100644 index cfd4a51d532..00000000000 --- a/test/configtest/without-config-path/__snapshots__/without-config-path.test.js.snap.webpack4 +++ /dev/null @@ -1,8 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`'configtest' command without the configuration path option should validate default configuration: stderr 1`] = `""`; - -exports[`'configtest' command without the configuration path option should validate default configuration: stdout 1`] = ` -"[webpack-cli] Validate '/test/configtest/without-config-path/webpack.config.js'. -[webpack-cli] There are no validation errors in the given webpack configuration." -`; diff --git a/test/help/__snapshots__/help.test.js.snap.devServer3.webpack4 b/test/help/__snapshots__/help.test.js.snap.devServer3.webpack4 deleted file mode 100644 index b4f76212389..00000000000 --- a/test/help/__snapshots__/help.test.js.snap.devServer3.webpack4 +++ /dev/null @@ -1,2704 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`help should log error for invalid command using command syntax #3: stderr 1`] = ` -"[webpack-cli] Incorrect use of help -[webpack-cli] Please use: 'webpack help [command] [option]' | 'webpack [command] --help' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`help should log error for invalid command using command syntax #3: stdout 1`] = `""`; - -exports[`help should log error for invalid command using command syntax #4: stderr 1`] = ` -"[webpack-cli] Incorrect use of help -[webpack-cli] Please use: 'webpack help [command] [option]' | 'webpack [command] --help' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`help should log error for invalid command using command syntax #4: stdout 1`] = `""`; - -exports[`help should log error for invalid command using the "--help" option #2: stderr 1`] = ` -"[webpack-cli] Incorrect use of help -[webpack-cli] Please use: 'webpack help [command] [option]' | 'webpack [command] --help' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`help should log error for invalid command using the "--help" option #2: stdout 1`] = `""`; - -exports[`help should log error for invalid command using the "--help" option #3: stderr 1`] = ` -"[webpack-cli] Incorrect use of help -[webpack-cli] Please use: 'webpack help [command] [option]' | 'webpack [command] --help' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`help should log error for invalid command using the "--help" option #3: stdout 1`] = `""`; - -exports[`help should log error for invalid command using the "--help" option: stderr 1`] = `"[webpack-cli] Unknown value for '--help' option, please use '--help=verbose'"`; - -exports[`help should log error for invalid command using the "--help" option: stdout 1`] = `""`; - -exports[`help should log error for invalid flag with the "--help" option #2 1`] = `"[webpack-cli] Unknown value for '--help' option, please use '--help=verbose'"`; - -exports[`help should log error for invalid flag with the "--help" option #2: stderr 1`] = `"[webpack-cli] Unknown value for '--help' option, please use '--help=verbose'"`; - -exports[`help should log error for invalid flag with the "--help" option #2: stdout 1`] = `""`; - -exports[`help should log error for invalid flag with the "--help" option: stderr 1`] = ` -"[webpack-cli] Incorrect use of help -[webpack-cli] Please use: 'webpack help [command] [option]' | 'webpack [command] --help' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`help should log error for invalid flag with the "--help" option: stdout 1`] = `""`; - -exports[`help should log error for unknown command using command syntax #2: stderr 1`] = ` -"[webpack-cli] Can't find and load command 'verbose' -[webpack-cli] Run 'webpack --help' to see available commands and options." -`; - -exports[`help should log error for unknown command using command syntax #2: stdout 1`] = `""`; - -exports[`help should log error for unknown command using command syntax: stderr 1`] = ` -"[webpack-cli] Can't find and load command 'myCommand' -[webpack-cli] Run 'webpack --help' to see available commands and options." -`; - -exports[`help should log error for unknown command using command syntax: stdout 1`] = `""`; - -exports[`help should log error for unknown option using command syntax #2: stderr 1`] = ` -"[webpack-cli] Unknown option '--made' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`help should log error for unknown option using command syntax #2: stdout 1`] = `""`; - -exports[`help should log error for unknown option using command syntax #3: stderr 1`] = ` -"[webpack-cli] Unknown option '--made' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`help should log error for unknown option using command syntax #3: stdout 1`] = `""`; - -exports[`help should log error for unknown option using command syntax #4: stderr 1`] = ` -"[webpack-cli] Can't find and load command 'bui' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`help should log error for unknown option using command syntax #4: stdout 1`] = `""`; - -exports[`help should show help information and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack [entries...] [options] -Alternative usage to run commands: webpack [command] [options] - -The build tool for modern web applications. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - -w, --watch Watch for files changes. - --no-watch Do not watch for file changes. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server. - version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack [entries...] [options] -Alternative usage to run commands: webpack [command] [options] - -The build tool for modern web applications. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - -w, --watch Watch for files changes. - --no-watch Do not watch for file changes. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server. - version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information and taking precedence when "--help" and "--version" option using together: stderr 1`] = `""`; - -exports[`help should show help information and taking precedence when "--help" and "--version" option using together: stdout 1`] = ` -"Usage: webpack [entries...] [options] -Alternative usage to run commands: webpack [command] [options] - -The build tool for modern web applications. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - -w, --watch Watch for files changes. - --no-watch Do not watch for file changes. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server. - version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'b' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'b' command using command syntax: stdout 1`] = ` -"Usage: webpack build|bundle|b [entries...] [options] - -Run webpack (default command, can be omitted). - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - -w, --watch Watch for files changes. - --no-watch Do not watch for file changes. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'b' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'b' command using the "--help" option: stdout 1`] = ` -"Usage: webpack build|bundle|b [entries...] [options] - -Run webpack (default command, can be omitted). - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - -w, --watch Watch for files changes. - --no-watch Do not watch for file changes. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'build' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'build' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack build|bundle|b [entries...] [options] - -Run webpack (default command, can be omitted). - -Options: - -c, --config Provide path to a webpack configuration file e.g. - ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using - 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is - a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. - ./src/main.js. - -o, --output-path Output location of the file generated by webpack - e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading - multiple configurations. - --stats [value] It instructs webpack on how to treat the stats - e.g. verbose. - --no-stats Disable stats output. - -w, --watch Watch for files changes. - --no-watch Do not watch for file changes. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', - 'webpack-cli' and 'webpack-dev-server' and - commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'build' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'build' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack build|bundle|b [entries...] [options] - -Run webpack (default command, can be omitted). - -Options: - -c, --config Provide path to a webpack configuration file e.g. - ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using - 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is - a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. - ./src/main.js. - -o, --output-path Output location of the file generated by webpack - e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading - multiple configurations. - --stats [value] It instructs webpack on how to treat the stats - e.g. verbose. - --no-stats Disable stats output. - -w, --watch Watch for files changes. - --no-watch Do not watch for file changes. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', - 'webpack-cli' and 'webpack-dev-server' and - commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'build' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'build' command using command syntax: stdout 1`] = ` -"Usage: webpack build|bundle|b [entries...] [options] - -Run webpack (default command, can be omitted). - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - -w, --watch Watch for files changes. - --no-watch Do not watch for file changes. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'build' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'build' command using the "--help" option: stdout 1`] = ` -"Usage: webpack build|bundle|b [entries...] [options] - -Run webpack (default command, can be omitted). - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - -w, --watch Watch for files changes. - --no-watch Do not watch for file changes. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'c' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'c' command using command syntax: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'c' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'c' command using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'configtest' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'configtest' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack configtest|t [config-path] - -Validate a webpack configuration. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' - and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'configtest' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'configtest' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack configtest|t [config-path] - -Validate a webpack configuration. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' - and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'configtest' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'configtest' command using command syntax: stdout 1`] = ` -"Usage: webpack configtest|t [config-path] - -Validate a webpack configuration. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'configtest' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'configtest' command using the "--help" option: stdout 1`] = ` -"Usage: webpack configtest|t [config-path] - -Validate a webpack configuration. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'create' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'create' command using command syntax: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'create' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'create' command using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'i' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'i' command using command syntax: stdout 1`] = ` -"Usage: webpack info|i [options] - -Outputs information about your system. - -Options: - -o, --output To get the output in a specified format ( accept json or markdown ) - -a, --additional-package Adds additional packages to the output - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'i' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'i' command using the "--help" option: stdout 1`] = ` -"Usage: webpack info|i [options] - -Outputs information about your system. - -Options: - -o, --output To get the output in a specified format ( accept json or markdown ) - -a, --additional-package Adds additional packages to the output - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'info' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'info' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack info|i [options] - -Outputs information about your system. - -Options: - -o, --output To get the output in a specified format - ( accept json or markdown ) - -a, --additional-package Adds additional packages to the output - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', - 'webpack-cli' and 'webpack-dev-server' - and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'info' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'info' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack info|i [options] - -Outputs information about your system. - -Options: - -o, --output To get the output in a specified format - ( accept json or markdown ) - -a, --additional-package Adds additional packages to the output - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', - 'webpack-cli' and 'webpack-dev-server' - and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'info' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'info' command using command syntax: stdout 1`] = ` -"Usage: webpack info|i [options] - -Outputs information about your system. - -Options: - -o, --output To get the output in a specified format ( accept json or markdown ) - -a, --additional-package Adds additional packages to the output - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'info' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'info' command using the "--help" option: stdout 1`] = ` -"Usage: webpack info|i [options] - -Outputs information about your system. - -Options: - -o, --output To get the output in a specified format ( accept json or markdown ) - -a, --additional-package Adds additional packages to the output - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'init' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'init' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. - ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default - answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' - and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'init' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'init' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. - ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default - answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' - and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'init' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'init' command using command syntax: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'init' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'init' command using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'l' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'l' command using command syntax: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'l' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'l' command using the "--help" option: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'loader' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'loader' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' - and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'loader' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'loader' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' - and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'loader' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'loader' command using command syntax: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'loader' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'loader' command using the "--help" option: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'n' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'n' command using command syntax: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'n' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'n' command using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'new' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'new' command using command syntax: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'new' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'new' command using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'p' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'p' command using command syntax: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'p' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'p' command using the "--help" option: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'plugin' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'plugin' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' - and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'plugin' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'plugin' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' - and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'plugin' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'plugin' command using command syntax: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'plugin' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'plugin' command using the "--help" option: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 's' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 's' command using command syntax: stdout 1`] = ` -"Usage: webpack serve|server|s [entries...] [options] - -Run the webpack dev server. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - --bonjour Broadcasts the server via ZeroConf networking on start - --lazy Lazy - --liveReload Enables/Disables live reloading on changing files - --serveIndex Enables/Disables serveIndex middleware - --inline Inline mode (set to false to disable including client scripts like livereload) - --profile Print compilation profile data for progress steps - --progress Print compilation progress in percentage - --hot-only Do not refresh page if HMR fails - --stdin close when stdin ends - --open [value] Open the default browser, or optionally specify a browser name - --useLocalIp Open default browser with local IP - --open-page Open default browser with the specified page - --client-log-level Log level in the browser (trace, debug, info, warn, error or silent) - --https HTTPS - --http2 HTTP/2, must be used with HTTPS - --key Path to a SSL key. - --cert Path to a SSL certificate. - --cacert Path to a SSL CA certificate. - --pfx Path to a SSL pfx file. - --pfx-passphrase Passphrase for pfx file. - --content-base A directory or URL to serve HTML content from. - --watch-content-base Enable live-reloading of the content-base. - --history-api-fallback Fallback to /index.html for Single Page Applications. - --compress Enable gzip compression - --port The port - --disable-host-check Will not check the host - --socket Socket to listen - --public The public hostname/ip address of the server - --host The hostname/ip address the server will bind to - --allowed-hosts A list of hosts that are allowed to access the dev server, separated by spaces - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 's' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 's' command using the "--help" option: stdout 1`] = ` -"Usage: webpack serve|server|s [entries...] [options] - -Run the webpack dev server. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - --bonjour Broadcasts the server via ZeroConf networking on start - --lazy Lazy - --liveReload Enables/Disables live reloading on changing files - --serveIndex Enables/Disables serveIndex middleware - --inline Inline mode (set to false to disable including client scripts like livereload) - --profile Print compilation profile data for progress steps - --progress Print compilation progress in percentage - --hot-only Do not refresh page if HMR fails - --stdin close when stdin ends - --open [value] Open the default browser, or optionally specify a browser name - --useLocalIp Open default browser with local IP - --open-page Open default browser with the specified page - --client-log-level Log level in the browser (trace, debug, info, warn, error or silent) - --https HTTPS - --http2 HTTP/2, must be used with HTTPS - --key Path to a SSL key. - --cert Path to a SSL certificate. - --cacert Path to a SSL CA certificate. - --pfx Path to a SSL pfx file. - --pfx-passphrase Passphrase for pfx file. - --content-base A directory or URL to serve HTML content from. - --watch-content-base Enable live-reloading of the content-base. - --history-api-fallback Fallback to /index.html for Single Page Applications. - --compress Enable gzip compression - --port The port - --disable-host-check Will not check the host - --socket Socket to listen - --public The public hostname/ip address of the server - --host The hostname/ip address the server will bind to - --allowed-hosts A list of hosts that are allowed to access the dev server, separated by spaces - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'serve' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'serve' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack serve|server|s [entries...] [options] - -Run the webpack dev server. - -Options: - -c, --config Provide path to a webpack configuration file e.g. - ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using - 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it - is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. - ./src/main.js. - -o, --output-path Output location of the file generated by webpack - e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading - multiple configurations. - --stats [value] It instructs webpack on how to treat the stats - e.g. verbose. - --no-stats Disable stats output. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - --bonjour Broadcasts the server via ZeroConf networking on - start - --lazy Lazy - --liveReload Enables/Disables live reloading on changing files - --serveIndex Enables/Disables serveIndex middleware - --inline Inline mode (set to false to disable including - client scripts like livereload) - --profile Print compilation profile data for progress steps - --progress Print compilation progress in percentage - --hot-only Do not refresh page if HMR fails - --stdin close when stdin ends - --open [value] Open the default browser, or optionally specify a - browser name - --useLocalIp Open default browser with local IP - --open-page Open default browser with the specified page - --client-log-level Log level in the browser (trace, debug, info, - warn, error or silent) - --https HTTPS - --http2 HTTP/2, must be used with HTTPS - --key Path to a SSL key. - --cert Path to a SSL certificate. - --cacert Path to a SSL CA certificate. - --pfx Path to a SSL pfx file. - --pfx-passphrase Passphrase for pfx file. - --content-base A directory or URL to serve HTML content from. - --watch-content-base Enable live-reloading of the content-base. - --history-api-fallback Fallback to /index.html for Single Page - Applications. - --compress Enable gzip compression - --port The port - --disable-host-check Will not check the host - --socket Socket to listen - --public The public hostname/ip address of the server - --host The hostname/ip address the server will bind to - --allowed-hosts A list of hosts that are allowed to access the - dev server, separated by spaces - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', - 'webpack-cli' and 'webpack-dev-server' and - commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'serve' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'serve' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack serve|server|s [entries...] [options] - -Run the webpack dev server. - -Options: - -c, --config Provide path to a webpack configuration file e.g. - ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using - 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it - is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. - ./src/main.js. - -o, --output-path Output location of the file generated by webpack - e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading - multiple configurations. - --stats [value] It instructs webpack on how to treat the stats - e.g. verbose. - --no-stats Disable stats output. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - --bonjour Broadcasts the server via ZeroConf networking on - start - --lazy Lazy - --liveReload Enables/Disables live reloading on changing files - --serveIndex Enables/Disables serveIndex middleware - --inline Inline mode (set to false to disable including - client scripts like livereload) - --profile Print compilation profile data for progress steps - --progress Print compilation progress in percentage - --hot-only Do not refresh page if HMR fails - --stdin close when stdin ends - --open [value] Open the default browser, or optionally specify a - browser name - --useLocalIp Open default browser with local IP - --open-page Open default browser with the specified page - --client-log-level Log level in the browser (trace, debug, info, - warn, error or silent) - --https HTTPS - --http2 HTTP/2, must be used with HTTPS - --key Path to a SSL key. - --cert Path to a SSL certificate. - --cacert Path to a SSL CA certificate. - --pfx Path to a SSL pfx file. - --pfx-passphrase Passphrase for pfx file. - --content-base A directory or URL to serve HTML content from. - --watch-content-base Enable live-reloading of the content-base. - --history-api-fallback Fallback to /index.html for Single Page - Applications. - --compress Enable gzip compression - --port The port - --disable-host-check Will not check the host - --socket Socket to listen - --public The public hostname/ip address of the server - --host The hostname/ip address the server will bind to - --allowed-hosts A list of hosts that are allowed to access the - dev server, separated by spaces - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', - 'webpack-cli' and 'webpack-dev-server' and - commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'serve' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'serve' command using command syntax: stdout 1`] = ` -"Usage: webpack serve|server|s [entries...] [options] - -Run the webpack dev server. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - --bonjour Broadcasts the server via ZeroConf networking on start - --lazy Lazy - --liveReload Enables/Disables live reloading on changing files - --serveIndex Enables/Disables serveIndex middleware - --inline Inline mode (set to false to disable including client scripts like livereload) - --profile Print compilation profile data for progress steps - --progress Print compilation progress in percentage - --hot-only Do not refresh page if HMR fails - --stdin close when stdin ends - --open [value] Open the default browser, or optionally specify a browser name - --useLocalIp Open default browser with local IP - --open-page Open default browser with the specified page - --client-log-level Log level in the browser (trace, debug, info, warn, error or silent) - --https HTTPS - --http2 HTTP/2, must be used with HTTPS - --key Path to a SSL key. - --cert Path to a SSL certificate. - --cacert Path to a SSL CA certificate. - --pfx Path to a SSL pfx file. - --pfx-passphrase Passphrase for pfx file. - --content-base A directory or URL to serve HTML content from. - --watch-content-base Enable live-reloading of the content-base. - --history-api-fallback Fallback to /index.html for Single Page Applications. - --compress Enable gzip compression - --port The port - --disable-host-check Will not check the host - --socket Socket to listen - --public The public hostname/ip address of the server - --host The hostname/ip address the server will bind to - --allowed-hosts A list of hosts that are allowed to access the dev server, separated by spaces - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'serve' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'serve' command using the "--help" option: stdout 1`] = ` -"Usage: webpack serve|server|s [entries...] [options] - -Run the webpack dev server. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - --bonjour Broadcasts the server via ZeroConf networking on start - --lazy Lazy - --liveReload Enables/Disables live reloading on changing files - --serveIndex Enables/Disables serveIndex middleware - --inline Inline mode (set to false to disable including client scripts like livereload) - --profile Print compilation profile data for progress steps - --progress Print compilation progress in percentage - --hot-only Do not refresh page if HMR fails - --stdin close when stdin ends - --open [value] Open the default browser, or optionally specify a browser name - --useLocalIp Open default browser with local IP - --open-page Open default browser with the specified page - --client-log-level Log level in the browser (trace, debug, info, warn, error or silent) - --https HTTPS - --http2 HTTP/2, must be used with HTTPS - --key Path to a SSL key. - --cert Path to a SSL certificate. - --cacert Path to a SSL CA certificate. - --pfx Path to a SSL pfx file. - --pfx-passphrase Passphrase for pfx file. - --content-base A directory or URL to serve HTML content from. - --watch-content-base Enable live-reloading of the content-base. - --history-api-fallback Fallback to /index.html for Single Page Applications. - --compress Enable gzip compression - --port The port - --disable-host-check Will not check the host - --socket Socket to listen - --public The public hostname/ip address of the server - --host The hostname/ip address the server will bind to - --allowed-hosts A list of hosts that are allowed to access the dev server, separated by spaces - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'server' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'server' command using command syntax: stdout 1`] = ` -"Usage: webpack serve|server|s [entries...] [options] - -Run the webpack dev server. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - --bonjour Broadcasts the server via ZeroConf networking on start - --lazy Lazy - --liveReload Enables/Disables live reloading on changing files - --serveIndex Enables/Disables serveIndex middleware - --inline Inline mode (set to false to disable including client scripts like livereload) - --profile Print compilation profile data for progress steps - --progress Print compilation progress in percentage - --hot-only Do not refresh page if HMR fails - --stdin close when stdin ends - --open [value] Open the default browser, or optionally specify a browser name - --useLocalIp Open default browser with local IP - --open-page Open default browser with the specified page - --client-log-level Log level in the browser (trace, debug, info, warn, error or silent) - --https HTTPS - --http2 HTTP/2, must be used with HTTPS - --key Path to a SSL key. - --cert Path to a SSL certificate. - --cacert Path to a SSL CA certificate. - --pfx Path to a SSL pfx file. - --pfx-passphrase Passphrase for pfx file. - --content-base A directory or URL to serve HTML content from. - --watch-content-base Enable live-reloading of the content-base. - --history-api-fallback Fallback to /index.html for Single Page Applications. - --compress Enable gzip compression - --port The port - --disable-host-check Will not check the host - --socket Socket to listen - --public The public hostname/ip address of the server - --host The hostname/ip address the server will bind to - --allowed-hosts A list of hosts that are allowed to access the dev server, separated by spaces - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'server' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'server' command using the "--help" option: stdout 1`] = ` -"Usage: webpack serve|server|s [entries...] [options] - -Run the webpack dev server. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - --bonjour Broadcasts the server via ZeroConf networking on start - --lazy Lazy - --liveReload Enables/Disables live reloading on changing files - --serveIndex Enables/Disables serveIndex middleware - --inline Inline mode (set to false to disable including client scripts like livereload) - --profile Print compilation profile data for progress steps - --progress Print compilation progress in percentage - --hot-only Do not refresh page if HMR fails - --stdin close when stdin ends - --open [value] Open the default browser, or optionally specify a browser name - --useLocalIp Open default browser with local IP - --open-page Open default browser with the specified page - --client-log-level Log level in the browser (trace, debug, info, warn, error or silent) - --https HTTPS - --http2 HTTP/2, must be used with HTTPS - --key Path to a SSL key. - --cert Path to a SSL certificate. - --cacert Path to a SSL CA certificate. - --pfx Path to a SSL pfx file. - --pfx-passphrase Passphrase for pfx file. - --content-base A directory or URL to serve HTML content from. - --watch-content-base Enable live-reloading of the content-base. - --history-api-fallback Fallback to /index.html for Single Page Applications. - --compress Enable gzip compression - --port The port - --disable-host-check Will not check the host - --socket Socket to listen - --public The public hostname/ip address of the server - --host The hostname/ip address the server will bind to - --allowed-hosts A list of hosts that are allowed to access the dev server, separated by spaces - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 't' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 't' command using command syntax: stdout 1`] = ` -"Usage: webpack configtest|t [config-path] - -Validate a webpack configuration. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 't' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 't' command using the "--help" option: stdout 1`] = ` -"Usage: webpack configtest|t [config-path] - -Validate a webpack configuration. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'w' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'w' command using command syntax: stdout 1`] = ` -"Usage: webpack watch|w [entries...] [options] - -Run webpack and watch for files changes. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'w' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'w' command using the "--help" option: stdout 1`] = ` -"Usage: webpack watch|w [entries...] [options] - -Run webpack and watch for files changes. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'watch' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'watch' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack watch|w [entries...] [options] - -Run webpack and watch for files changes. - -Options: - -c, --config Provide path to a webpack configuration file e.g. - ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using - 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is - a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. - ./src/main.js. - -o, --output-path Output location of the file generated by webpack - e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading - multiple configurations. - --stats [value] It instructs webpack on how to treat the stats - e.g. verbose. - --no-stats Disable stats output. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', - 'webpack-cli' and 'webpack-dev-server' and - commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'watch' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'watch' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack watch|w [entries...] [options] - -Run webpack and watch for files changes. - -Options: - -c, --config Provide path to a webpack configuration file e.g. - ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using - 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is - a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. - ./src/main.js. - -o, --output-path Output location of the file generated by webpack - e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading - multiple configurations. - --stats [value] It instructs webpack on how to treat the stats - e.g. verbose. - --no-stats Disable stats output. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', - 'webpack-cli' and 'webpack-dev-server' and - commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'watch' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'watch' command using command syntax: stdout 1`] = ` -"Usage: webpack watch|w [entries...] [options] - -Run webpack and watch for files changes. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'watch' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'watch' command using the "--help" option: stdout 1`] = ` -"Usage: webpack watch|w [entries...] [options] - -Run webpack and watch for files changes. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using command syntax: stderr 1`] = `""`; - -exports[`help should show help information using command syntax: stdout 1`] = ` -"Usage: webpack [entries...] [options] -Alternative usage to run commands: webpack [command] [options] - -The build tool for modern web applications. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - -w, --watch Watch for files changes. - --no-watch Do not watch for file changes. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server. - version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information using the "--help" option: stdout 1`] = ` -"Usage: webpack [entries...] [options] -Alternative usage to run commands: webpack [command] [options] - -The build tool for modern web applications. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - -w, --watch Watch for files changes. - --no-watch Do not watch for file changes. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server. - version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help --color" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help --color" option: stdout 1`] = ` -"Usage: webpack --color -Description: Enable colors on console. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help --mode" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help --mode" option: stdout 1`] = ` -"Usage: webpack --mode -Description: Defines the mode to pass to webpack. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help --no-color" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help --no-color" option: stdout 1`] = ` -"Usage: webpack --no-color -Description: Disable colors on console. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help --no-stats" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help --no-stats" option: stdout 1`] = ` -"Usage: webpack --no-stats -Description: Disable stats output. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help --stats" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help --stats" option: stdout 1`] = ` -"Usage: webpack --stats [value] -Description: It instructs webpack on how to treat the stats e.g. verbose. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help --target" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help --target" option: stdout 1`] = ` -"Usage: webpack --target -Short: webpack -t -Description: Sets the build target e.g. node. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help --version" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help --version" option: stdout 1`] = ` -"Usage: webpack --version -Short: webpack -v -Description: Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help -v" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help -v" option: stdout 1`] = ` -"Usage: webpack --version -Short: webpack -v -Description: Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help serve --color" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help serve --color" option: stdout 1`] = ` -"Usage: webpack serve --color -Description: Enable colors on console. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help serve --mode" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help serve --mode" option: stdout 1`] = ` -"Usage: webpack serve --mode -Description: Defines the mode to pass to webpack. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help serve --no-color" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help serve --no-color" option: stdout 1`] = ` -"Usage: webpack serve --no-color -Description: Disable colors on console. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information with options for sub commands: stderr 1`] = `""`; - -exports[`help should show help information with options for sub commands: stdout 1`] = ` -"Usage: webpack info|i [options] - -Outputs information about your system. - -Options: - -o, --output To get the output in a specified format ( accept json or markdown ) - -a, --additional-package Adds additional packages to the output - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show the same information using the "--help" option and command syntax: stderr from command syntax 1`] = `""`; - -exports[`help should show the same information using the "--help" option and command syntax: stderr from option 1`] = `""`; - -exports[`help should show the same information using the "--help" option and command syntax: stdout from command syntax 1`] = ` -"Usage: webpack [entries...] [options] -Alternative usage to run commands: webpack [command] [options] - -The build tool for modern web applications. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - -w, --watch Watch for files changes. - --no-watch Do not watch for file changes. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server. - version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show the same information using the "--help" option and command syntax: stdout from option 1`] = ` -"Usage: webpack [entries...] [options] -Alternative usage to run commands: webpack [command] [options] - -The build tool for modern web applications. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - -w, --watch Watch for files changes. - --no-watch Do not watch for file changes. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server. - version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; diff --git a/test/help/__snapshots__/help.test.js.snap.devServer3.webpack5 b/test/help/__snapshots__/help.test.js.snap.devServer3.webpack5 deleted file mode 100644 index 240ab309d91..00000000000 --- a/test/help/__snapshots__/help.test.js.snap.devServer3.webpack5 +++ /dev/null @@ -1,2773 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`help should log error for invalid command using command syntax #3: stderr 1`] = ` -"[webpack-cli] Incorrect use of help -[webpack-cli] Please use: 'webpack help [command] [option]' | 'webpack [command] --help' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`help should log error for invalid command using command syntax #3: stdout 1`] = `""`; - -exports[`help should log error for invalid command using command syntax #4: stderr 1`] = ` -"[webpack-cli] Incorrect use of help -[webpack-cli] Please use: 'webpack help [command] [option]' | 'webpack [command] --help' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`help should log error for invalid command using command syntax #4: stdout 1`] = `""`; - -exports[`help should log error for invalid command using the "--help" option #2: stderr 1`] = ` -"[webpack-cli] Incorrect use of help -[webpack-cli] Please use: 'webpack help [command] [option]' | 'webpack [command] --help' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`help should log error for invalid command using the "--help" option #2: stdout 1`] = `""`; - -exports[`help should log error for invalid command using the "--help" option #3: stderr 1`] = ` -"[webpack-cli] Incorrect use of help -[webpack-cli] Please use: 'webpack help [command] [option]' | 'webpack [command] --help' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`help should log error for invalid command using the "--help" option #3: stdout 1`] = `""`; - -exports[`help should log error for invalid command using the "--help" option: stderr 1`] = `"[webpack-cli] Unknown value for '--help' option, please use '--help=verbose'"`; - -exports[`help should log error for invalid command using the "--help" option: stdout 1`] = `""`; - -exports[`help should log error for invalid flag with the "--help" option #2 1`] = `"[webpack-cli] Unknown value for '--help' option, please use '--help=verbose'"`; - -exports[`help should log error for invalid flag with the "--help" option #2: stderr 1`] = `"[webpack-cli] Unknown value for '--help' option, please use '--help=verbose'"`; - -exports[`help should log error for invalid flag with the "--help" option #2: stdout 1`] = `""`; - -exports[`help should log error for invalid flag with the "--help" option: stderr 1`] = ` -"[webpack-cli] Incorrect use of help -[webpack-cli] Please use: 'webpack help [command] [option]' | 'webpack [command] --help' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`help should log error for invalid flag with the "--help" option: stdout 1`] = `""`; - -exports[`help should log error for unknown command using command syntax #2: stderr 1`] = ` -"[webpack-cli] Can't find and load command 'verbose' -[webpack-cli] Run 'webpack --help' to see available commands and options." -`; - -exports[`help should log error for unknown command using command syntax #2: stdout 1`] = `""`; - -exports[`help should log error for unknown command using command syntax: stderr 1`] = ` -"[webpack-cli] Can't find and load command 'myCommand' -[webpack-cli] Run 'webpack --help' to see available commands and options." -`; - -exports[`help should log error for unknown command using command syntax: stdout 1`] = `""`; - -exports[`help should log error for unknown option using command syntax #2: stderr 1`] = ` -"[webpack-cli] Unknown option '--made' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`help should log error for unknown option using command syntax #2: stdout 1`] = `""`; - -exports[`help should log error for unknown option using command syntax #3: stderr 1`] = ` -"[webpack-cli] Unknown option '--made' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`help should log error for unknown option using command syntax #3: stdout 1`] = `""`; - -exports[`help should log error for unknown option using command syntax #4: stderr 1`] = ` -"[webpack-cli] Can't find and load command 'bui' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`help should log error for unknown option using command syntax #4: stdout 1`] = `""`; - -exports[`help should show help information and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack [entries...] [options] -Alternative usage to run commands: webpack [command] [options] - -The build tool for modern web applications. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - -w, --watch Enter watch mode, which rebuilds on file change. - --no-watch Negative 'watch' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server. - version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack [entries...] [options] -Alternative usage to run commands: webpack [command] [options] - -The build tool for modern web applications. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - -w, --watch Enter watch mode, which rebuilds on file change. - --no-watch Negative 'watch' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server. - version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information and taking precedence when "--help" and "--version" option using together: stderr 1`] = `""`; - -exports[`help should show help information and taking precedence when "--help" and "--version" option using together: stdout 1`] = ` -"Usage: webpack [entries...] [options] -Alternative usage to run commands: webpack [command] [options] - -The build tool for modern web applications. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - -w, --watch Enter watch mode, which rebuilds on file change. - --no-watch Negative 'watch' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server. - version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'b' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'b' command using command syntax: stdout 1`] = ` -"Usage: webpack build|bundle|b [entries...] [options] - -Run webpack (default command, can be omitted). - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - -w, --watch Enter watch mode, which rebuilds on file change. - --no-watch Negative 'watch' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'b' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'b' command using the "--help" option: stdout 1`] = ` -"Usage: webpack build|bundle|b [entries...] [options] - -Run webpack (default command, can be omitted). - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - -w, --watch Enter watch mode, which rebuilds on file change. - --no-watch Negative 'watch' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'build' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'build' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack build|bundle|b [entries...] [options] - -Run webpack (default command, can be omitted). - -Options: - -c, --config Provide path to a webpack configuration file e.g. - ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using - 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is - a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - -d, --devtool A developer tool to enhance debugging (false | - eval | - [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the - last one is exported. - --mode Enable production optimizations or development - hints. - --name Name of the configuration. Used when loading - multiple configurations. - -o, --output-path The output directory as **absolute path** - (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build - for. An array of environments to build for all of - them when possible. - --no-target Negative 'target' option. - -w, --watch Enter watch mode, which rebuilds on file change. - --no-watch Negative 'watch' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', - 'webpack-cli' and 'webpack-dev-server' and - commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'build' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'build' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack build|bundle|b [entries...] [options] - -Run webpack (default command, can be omitted). - -Options: - -c, --config Provide path to a webpack configuration file e.g. - ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using - 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is - a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - -d, --devtool A developer tool to enhance debugging (false | - eval | - [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the - last one is exported. - --mode Enable production optimizations or development - hints. - --name Name of the configuration. Used when loading - multiple configurations. - -o, --output-path The output directory as **absolute path** - (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build - for. An array of environments to build for all of - them when possible. - --no-target Negative 'target' option. - -w, --watch Enter watch mode, which rebuilds on file change. - --no-watch Negative 'watch' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', - 'webpack-cli' and 'webpack-dev-server' and - commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'build' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'build' command using command syntax: stdout 1`] = ` -"Usage: webpack build|bundle|b [entries...] [options] - -Run webpack (default command, can be omitted). - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - -w, --watch Enter watch mode, which rebuilds on file change. - --no-watch Negative 'watch' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'build' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'build' command using the "--help" option: stdout 1`] = ` -"Usage: webpack build|bundle|b [entries...] [options] - -Run webpack (default command, can be omitted). - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - -w, --watch Enter watch mode, which rebuilds on file change. - --no-watch Negative 'watch' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'c' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'c' command using command syntax: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'c' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'c' command using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'configtest' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'configtest' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack configtest|t [config-path] - -Validate a webpack configuration. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' - and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'configtest' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'configtest' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack configtest|t [config-path] - -Validate a webpack configuration. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' - and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'configtest' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'configtest' command using command syntax: stdout 1`] = ` -"Usage: webpack configtest|t [config-path] - -Validate a webpack configuration. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'configtest' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'configtest' command using the "--help" option: stdout 1`] = ` -"Usage: webpack configtest|t [config-path] - -Validate a webpack configuration. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'create' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'create' command using command syntax: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'create' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'create' command using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'i' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'i' command using command syntax: stdout 1`] = ` -"Usage: webpack info|i [options] - -Outputs information about your system. - -Options: - -o, --output To get the output in a specified format ( accept json or markdown ) - -a, --additional-package Adds additional packages to the output - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'i' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'i' command using the "--help" option: stdout 1`] = ` -"Usage: webpack info|i [options] - -Outputs information about your system. - -Options: - -o, --output To get the output in a specified format ( accept json or markdown ) - -a, --additional-package Adds additional packages to the output - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'info' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'info' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack info|i [options] - -Outputs information about your system. - -Options: - -o, --output To get the output in a specified format - ( accept json or markdown ) - -a, --additional-package Adds additional packages to the output - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', - 'webpack-cli' and 'webpack-dev-server' - and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'info' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'info' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack info|i [options] - -Outputs information about your system. - -Options: - -o, --output To get the output in a specified format - ( accept json or markdown ) - -a, --additional-package Adds additional packages to the output - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', - 'webpack-cli' and 'webpack-dev-server' - and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'info' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'info' command using command syntax: stdout 1`] = ` -"Usage: webpack info|i [options] - -Outputs information about your system. - -Options: - -o, --output To get the output in a specified format ( accept json or markdown ) - -a, --additional-package Adds additional packages to the output - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'info' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'info' command using the "--help" option: stdout 1`] = ` -"Usage: webpack info|i [options] - -Outputs information about your system. - -Options: - -o, --output To get the output in a specified format ( accept json or markdown ) - -a, --additional-package Adds additional packages to the output - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'init' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'init' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. - ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default - answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' - and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'init' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'init' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. - ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default - answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' - and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'init' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'init' command using command syntax: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'init' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'init' command using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'l' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'l' command using command syntax: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'l' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'l' command using the "--help" option: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'loader' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'loader' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' - and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'loader' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'loader' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' - and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'loader' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'loader' command using command syntax: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'loader' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'loader' command using the "--help" option: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'n' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'n' command using command syntax: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'n' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'n' command using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'new' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'new' command using command syntax: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'new' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'new' command using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'p' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'p' command using command syntax: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'p' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'p' command using the "--help" option: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'plugin' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'plugin' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' - and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'plugin' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'plugin' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' - and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'plugin' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'plugin' command using command syntax: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'plugin' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'plugin' command using the "--help" option: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 's' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 's' command using command syntax: stdout 1`] = ` -"Usage: webpack serve|server|s [entries...] [options] - -Run the webpack dev server. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. - --bonjour Broadcasts the server via ZeroConf networking on start - --lazy Lazy - --liveReload Enables/Disables live reloading on changing files - --serveIndex Enables/Disables serveIndex middleware - --inline Inline mode (set to false to disable including client scripts like livereload) - --profile Print compilation profile data for progress steps - --progress Print compilation progress in percentage - --hot-only Do not refresh page if HMR fails - --stdin close when stdin ends - --open [value] Open the default browser, or optionally specify a browser name - --useLocalIp Open default browser with local IP - --open-page Open default browser with the specified page - --client-log-level Log level in the browser (trace, debug, info, warn, error or silent) - --https HTTPS - --http2 HTTP/2, must be used with HTTPS - --key Path to a SSL key. - --cert Path to a SSL certificate. - --cacert Path to a SSL CA certificate. - --pfx Path to a SSL pfx file. - --pfx-passphrase Passphrase for pfx file. - --content-base A directory or URL to serve HTML content from. - --watch-content-base Enable live-reloading of the content-base. - --history-api-fallback Fallback to /index.html for Single Page Applications. - --compress Enable gzip compression - --port The port - --disable-host-check Will not check the host - --socket Socket to listen - --public The public hostname/ip address of the server - --host The hostname/ip address the server will bind to - --allowed-hosts A list of hosts that are allowed to access the dev server, separated by spaces - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 's' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 's' command using the "--help" option: stdout 1`] = ` -"Usage: webpack serve|server|s [entries...] [options] - -Run the webpack dev server. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. - --bonjour Broadcasts the server via ZeroConf networking on start - --lazy Lazy - --liveReload Enables/Disables live reloading on changing files - --serveIndex Enables/Disables serveIndex middleware - --inline Inline mode (set to false to disable including client scripts like livereload) - --profile Print compilation profile data for progress steps - --progress Print compilation progress in percentage - --hot-only Do not refresh page if HMR fails - --stdin close when stdin ends - --open [value] Open the default browser, or optionally specify a browser name - --useLocalIp Open default browser with local IP - --open-page Open default browser with the specified page - --client-log-level Log level in the browser (trace, debug, info, warn, error or silent) - --https HTTPS - --http2 HTTP/2, must be used with HTTPS - --key Path to a SSL key. - --cert Path to a SSL certificate. - --cacert Path to a SSL CA certificate. - --pfx Path to a SSL pfx file. - --pfx-passphrase Passphrase for pfx file. - --content-base A directory or URL to serve HTML content from. - --watch-content-base Enable live-reloading of the content-base. - --history-api-fallback Fallback to /index.html for Single Page Applications. - --compress Enable gzip compression - --port The port - --disable-host-check Will not check the host - --socket Socket to listen - --public The public hostname/ip address of the server - --host The hostname/ip address the server will bind to - --allowed-hosts A list of hosts that are allowed to access the dev server, separated by spaces - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'serve' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'serve' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack serve|server|s [entries...] [options] - -Run the webpack dev server. - -Options: - -c, --config Provide path to a webpack configuration file e.g. - ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using - 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it - is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - -d, --devtool A developer tool to enhance debugging (false | - eval | - [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the - last one is exported. - --mode Enable production optimizations or development - hints. - --name Name of the configuration. Used when loading - multiple configurations. - -o, --output-path The output directory as **absolute path** - (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build - for. An array of environments to build for all of - them when possible. - --no-target Negative 'target' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. - --bonjour Broadcasts the server via ZeroConf networking on - start - --lazy Lazy - --liveReload Enables/Disables live reloading on changing files - --serveIndex Enables/Disables serveIndex middleware - --inline Inline mode (set to false to disable including - client scripts like livereload) - --profile Print compilation profile data for progress steps - --progress Print compilation progress in percentage - --hot-only Do not refresh page if HMR fails - --stdin close when stdin ends - --open [value] Open the default browser, or optionally specify a - browser name - --useLocalIp Open default browser with local IP - --open-page Open default browser with the specified page - --client-log-level Log level in the browser (trace, debug, info, - warn, error or silent) - --https HTTPS - --http2 HTTP/2, must be used with HTTPS - --key Path to a SSL key. - --cert Path to a SSL certificate. - --cacert Path to a SSL CA certificate. - --pfx Path to a SSL pfx file. - --pfx-passphrase Passphrase for pfx file. - --content-base A directory or URL to serve HTML content from. - --watch-content-base Enable live-reloading of the content-base. - --history-api-fallback Fallback to /index.html for Single Page - Applications. - --compress Enable gzip compression - --port The port - --disable-host-check Will not check the host - --socket Socket to listen - --public The public hostname/ip address of the server - --host The hostname/ip address the server will bind to - --allowed-hosts A list of hosts that are allowed to access the - dev server, separated by spaces - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', - 'webpack-cli' and 'webpack-dev-server' and - commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'serve' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'serve' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack serve|server|s [entries...] [options] - -Run the webpack dev server. - -Options: - -c, --config Provide path to a webpack configuration file e.g. - ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using - 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it - is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - -d, --devtool A developer tool to enhance debugging (false | - eval | - [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the - last one is exported. - --mode Enable production optimizations or development - hints. - --name Name of the configuration. Used when loading - multiple configurations. - -o, --output-path The output directory as **absolute path** - (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build - for. An array of environments to build for all of - them when possible. - --no-target Negative 'target' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. - --bonjour Broadcasts the server via ZeroConf networking on - start - --lazy Lazy - --liveReload Enables/Disables live reloading on changing files - --serveIndex Enables/Disables serveIndex middleware - --inline Inline mode (set to false to disable including - client scripts like livereload) - --profile Print compilation profile data for progress steps - --progress Print compilation progress in percentage - --hot-only Do not refresh page if HMR fails - --stdin close when stdin ends - --open [value] Open the default browser, or optionally specify a - browser name - --useLocalIp Open default browser with local IP - --open-page Open default browser with the specified page - --client-log-level Log level in the browser (trace, debug, info, - warn, error or silent) - --https HTTPS - --http2 HTTP/2, must be used with HTTPS - --key Path to a SSL key. - --cert Path to a SSL certificate. - --cacert Path to a SSL CA certificate. - --pfx Path to a SSL pfx file. - --pfx-passphrase Passphrase for pfx file. - --content-base A directory or URL to serve HTML content from. - --watch-content-base Enable live-reloading of the content-base. - --history-api-fallback Fallback to /index.html for Single Page - Applications. - --compress Enable gzip compression - --port The port - --disable-host-check Will not check the host - --socket Socket to listen - --public The public hostname/ip address of the server - --host The hostname/ip address the server will bind to - --allowed-hosts A list of hosts that are allowed to access the - dev server, separated by spaces - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', - 'webpack-cli' and 'webpack-dev-server' and - commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'serve' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'serve' command using command syntax: stdout 1`] = ` -"Usage: webpack serve|server|s [entries...] [options] - -Run the webpack dev server. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. - --bonjour Broadcasts the server via ZeroConf networking on start - --lazy Lazy - --liveReload Enables/Disables live reloading on changing files - --serveIndex Enables/Disables serveIndex middleware - --inline Inline mode (set to false to disable including client scripts like livereload) - --profile Print compilation profile data for progress steps - --progress Print compilation progress in percentage - --hot-only Do not refresh page if HMR fails - --stdin close when stdin ends - --open [value] Open the default browser, or optionally specify a browser name - --useLocalIp Open default browser with local IP - --open-page Open default browser with the specified page - --client-log-level Log level in the browser (trace, debug, info, warn, error or silent) - --https HTTPS - --http2 HTTP/2, must be used with HTTPS - --key Path to a SSL key. - --cert Path to a SSL certificate. - --cacert Path to a SSL CA certificate. - --pfx Path to a SSL pfx file. - --pfx-passphrase Passphrase for pfx file. - --content-base A directory or URL to serve HTML content from. - --watch-content-base Enable live-reloading of the content-base. - --history-api-fallback Fallback to /index.html for Single Page Applications. - --compress Enable gzip compression - --port The port - --disable-host-check Will not check the host - --socket Socket to listen - --public The public hostname/ip address of the server - --host The hostname/ip address the server will bind to - --allowed-hosts A list of hosts that are allowed to access the dev server, separated by spaces - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'serve' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'serve' command using the "--help" option: stdout 1`] = ` -"Usage: webpack serve|server|s [entries...] [options] - -Run the webpack dev server. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. - --bonjour Broadcasts the server via ZeroConf networking on start - --lazy Lazy - --liveReload Enables/Disables live reloading on changing files - --serveIndex Enables/Disables serveIndex middleware - --inline Inline mode (set to false to disable including client scripts like livereload) - --profile Print compilation profile data for progress steps - --progress Print compilation progress in percentage - --hot-only Do not refresh page if HMR fails - --stdin close when stdin ends - --open [value] Open the default browser, or optionally specify a browser name - --useLocalIp Open default browser with local IP - --open-page Open default browser with the specified page - --client-log-level Log level in the browser (trace, debug, info, warn, error or silent) - --https HTTPS - --http2 HTTP/2, must be used with HTTPS - --key Path to a SSL key. - --cert Path to a SSL certificate. - --cacert Path to a SSL CA certificate. - --pfx Path to a SSL pfx file. - --pfx-passphrase Passphrase for pfx file. - --content-base A directory or URL to serve HTML content from. - --watch-content-base Enable live-reloading of the content-base. - --history-api-fallback Fallback to /index.html for Single Page Applications. - --compress Enable gzip compression - --port The port - --disable-host-check Will not check the host - --socket Socket to listen - --public The public hostname/ip address of the server - --host The hostname/ip address the server will bind to - --allowed-hosts A list of hosts that are allowed to access the dev server, separated by spaces - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'server' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'server' command using command syntax: stdout 1`] = ` -"Usage: webpack serve|server|s [entries...] [options] - -Run the webpack dev server. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. - --bonjour Broadcasts the server via ZeroConf networking on start - --lazy Lazy - --liveReload Enables/Disables live reloading on changing files - --serveIndex Enables/Disables serveIndex middleware - --inline Inline mode (set to false to disable including client scripts like livereload) - --profile Print compilation profile data for progress steps - --progress Print compilation progress in percentage - --hot-only Do not refresh page if HMR fails - --stdin close when stdin ends - --open [value] Open the default browser, or optionally specify a browser name - --useLocalIp Open default browser with local IP - --open-page Open default browser with the specified page - --client-log-level Log level in the browser (trace, debug, info, warn, error or silent) - --https HTTPS - --http2 HTTP/2, must be used with HTTPS - --key Path to a SSL key. - --cert Path to a SSL certificate. - --cacert Path to a SSL CA certificate. - --pfx Path to a SSL pfx file. - --pfx-passphrase Passphrase for pfx file. - --content-base A directory or URL to serve HTML content from. - --watch-content-base Enable live-reloading of the content-base. - --history-api-fallback Fallback to /index.html for Single Page Applications. - --compress Enable gzip compression - --port The port - --disable-host-check Will not check the host - --socket Socket to listen - --public The public hostname/ip address of the server - --host The hostname/ip address the server will bind to - --allowed-hosts A list of hosts that are allowed to access the dev server, separated by spaces - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'server' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'server' command using the "--help" option: stdout 1`] = ` -"Usage: webpack serve|server|s [entries...] [options] - -Run the webpack dev server. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. - --bonjour Broadcasts the server via ZeroConf networking on start - --lazy Lazy - --liveReload Enables/Disables live reloading on changing files - --serveIndex Enables/Disables serveIndex middleware - --inline Inline mode (set to false to disable including client scripts like livereload) - --profile Print compilation profile data for progress steps - --progress Print compilation progress in percentage - --hot-only Do not refresh page if HMR fails - --stdin close when stdin ends - --open [value] Open the default browser, or optionally specify a browser name - --useLocalIp Open default browser with local IP - --open-page Open default browser with the specified page - --client-log-level Log level in the browser (trace, debug, info, warn, error or silent) - --https HTTPS - --http2 HTTP/2, must be used with HTTPS - --key Path to a SSL key. - --cert Path to a SSL certificate. - --cacert Path to a SSL CA certificate. - --pfx Path to a SSL pfx file. - --pfx-passphrase Passphrase for pfx file. - --content-base A directory or URL to serve HTML content from. - --watch-content-base Enable live-reloading of the content-base. - --history-api-fallback Fallback to /index.html for Single Page Applications. - --compress Enable gzip compression - --port The port - --disable-host-check Will not check the host - --socket Socket to listen - --public The public hostname/ip address of the server - --host The hostname/ip address the server will bind to - --allowed-hosts A list of hosts that are allowed to access the dev server, separated by spaces - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 't' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 't' command using command syntax: stdout 1`] = ` -"Usage: webpack configtest|t [config-path] - -Validate a webpack configuration. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 't' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 't' command using the "--help" option: stdout 1`] = ` -"Usage: webpack configtest|t [config-path] - -Validate a webpack configuration. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'w' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'w' command using command syntax: stdout 1`] = ` -"Usage: webpack watch|w [entries...] [options] - -Run webpack and watch for files changes. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'w' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'w' command using the "--help" option: stdout 1`] = ` -"Usage: webpack watch|w [entries...] [options] - -Run webpack and watch for files changes. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'watch' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'watch' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack watch|w [entries...] [options] - -Run webpack and watch for files changes. - -Options: - -c, --config Provide path to a webpack configuration file e.g. - ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using - 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is - a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - -d, --devtool A developer tool to enhance debugging (false | - eval | - [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the - last one is exported. - --mode Enable production optimizations or development - hints. - --name Name of the configuration. Used when loading - multiple configurations. - -o, --output-path The output directory as **absolute path** - (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build - for. An array of environments to build for all of - them when possible. - --no-target Negative 'target' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', - 'webpack-cli' and 'webpack-dev-server' and - commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'watch' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'watch' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack watch|w [entries...] [options] - -Run webpack and watch for files changes. - -Options: - -c, --config Provide path to a webpack configuration file e.g. - ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using - 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is - a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - -d, --devtool A developer tool to enhance debugging (false | - eval | - [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the - last one is exported. - --mode Enable production optimizations or development - hints. - --name Name of the configuration. Used when loading - multiple configurations. - -o, --output-path The output directory as **absolute path** - (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build - for. An array of environments to build for all of - them when possible. - --no-target Negative 'target' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', - 'webpack-cli' and 'webpack-dev-server' and - commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'watch' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'watch' command using command syntax: stdout 1`] = ` -"Usage: webpack watch|w [entries...] [options] - -Run webpack and watch for files changes. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'watch' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'watch' command using the "--help" option: stdout 1`] = ` -"Usage: webpack watch|w [entries...] [options] - -Run webpack and watch for files changes. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using command syntax: stderr 1`] = `""`; - -exports[`help should show help information using command syntax: stdout 1`] = ` -"Usage: webpack [entries...] [options] -Alternative usage to run commands: webpack [command] [options] - -The build tool for modern web applications. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - -w, --watch Enter watch mode, which rebuilds on file change. - --no-watch Negative 'watch' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server. - version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information using the "--help" option: stdout 1`] = ` -"Usage: webpack [entries...] [options] -Alternative usage to run commands: webpack [command] [options] - -The build tool for modern web applications. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - -w, --watch Enter watch mode, which rebuilds on file change. - --no-watch Negative 'watch' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server. - version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help --cache-type" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help --cache-type" option: stdout 1`] = ` -"Usage: webpack --cache-type -Description: In memory caching. Filesystem caching. -Possible values: \\"memory | filesystem\\" - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help --color" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help --color" option: stdout 1`] = ` -"Usage: webpack --color -Description: Enable colors on console. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help --mode" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help --mode" option: stdout 1`] = ` -"Usage: webpack --mode -Description: Enable production optimizations or development hints. -Possible values: \\"development | production | none\\" - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help --no-color" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help --no-color" option: stdout 1`] = ` -"Usage: webpack --no-color -Description: Disable colors on console. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help --no-stats" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help --no-stats" option: stdout 1`] = ` -"Usage: webpack --no-stats -Description: Negative 'stats' option. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help --stats" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help --stats" option: stdout 1`] = ` -"Usage: webpack --stats [value] -Description: Stats options object or preset name. -Possible values: \\"none | summary | errors-only | errors-warnings | minimal | normal | detailed | verbose\\" - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help --target" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help --target" option: stdout 1`] = ` -"Usage: webpack --target -Short: webpack -t -Description: Environment to build for. Environment to build for. An array of environments to build for all of them when possible. -Possible values: \\"false\\" - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help --version" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help --version" option: stdout 1`] = ` -"Usage: webpack --version -Short: webpack -v -Description: Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help -v" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help -v" option: stdout 1`] = ` -"Usage: webpack --version -Short: webpack -v -Description: Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help serve --color" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help serve --color" option: stdout 1`] = ` -"Usage: webpack serve --color -Description: Enable colors on console. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help serve --mode" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help serve --mode" option: stdout 1`] = ` -"Usage: webpack serve --mode -Description: Enable production optimizations or development hints. -Possible values: \\"development | production | none\\" - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help serve --no-color" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help serve --no-color" option: stdout 1`] = ` -"Usage: webpack serve --no-color -Description: Disable colors on console. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information with options for sub commands: stderr 1`] = `""`; - -exports[`help should show help information with options for sub commands: stdout 1`] = ` -"Usage: webpack info|i [options] - -Outputs information about your system. - -Options: - -o, --output To get the output in a specified format ( accept json or markdown ) - -a, --additional-package Adds additional packages to the output - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show the same information using the "--help" option and command syntax: stderr from command syntax 1`] = `""`; - -exports[`help should show the same information using the "--help" option and command syntax: stderr from option 1`] = `""`; - -exports[`help should show the same information using the "--help" option and command syntax: stdout from command syntax 1`] = ` -"Usage: webpack [entries...] [options] -Alternative usage to run commands: webpack [command] [options] - -The build tool for modern web applications. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - -w, --watch Enter watch mode, which rebuilds on file change. - --no-watch Negative 'watch' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server. - version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show the same information using the "--help" option and command syntax: stdout from option 1`] = ` -"Usage: webpack [entries...] [options] -Alternative usage to run commands: webpack [command] [options] - -The build tool for modern web applications. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - -w, --watch Enter watch mode, which rebuilds on file change. - --no-watch Negative 'watch' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server. - version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; diff --git a/test/help/__snapshots__/help.test.js.snap.devServer4.webpack4 b/test/help/__snapshots__/help.test.js.snap.devServer4.webpack4 deleted file mode 100644 index 8e9d9df18f9..00000000000 --- a/test/help/__snapshots__/help.test.js.snap.devServer4.webpack4 +++ /dev/null @@ -1,2122 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`help should log error for invalid command using command syntax #3: stderr 1`] = ` -"[webpack-cli] Incorrect use of help -[webpack-cli] Please use: 'webpack help [command] [option]' | 'webpack [command] --help' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`help should log error for invalid command using command syntax #3: stdout 1`] = `""`; - -exports[`help should log error for invalid command using command syntax #4: stderr 1`] = ` -"[webpack-cli] Incorrect use of help -[webpack-cli] Please use: 'webpack help [command] [option]' | 'webpack [command] --help' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`help should log error for invalid command using command syntax #4: stdout 1`] = `""`; - -exports[`help should log error for invalid command using the "--help" option #2: stderr 1`] = ` -"[webpack-cli] Incorrect use of help -[webpack-cli] Please use: 'webpack help [command] [option]' | 'webpack [command] --help' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`help should log error for invalid command using the "--help" option #2: stdout 1`] = `""`; - -exports[`help should log error for invalid command using the "--help" option #3: stderr 1`] = ` -"[webpack-cli] Incorrect use of help -[webpack-cli] Please use: 'webpack help [command] [option]' | 'webpack [command] --help' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`help should log error for invalid command using the "--help" option #3: stdout 1`] = `""`; - -exports[`help should log error for invalid command using the "--help" option: stderr 1`] = `"[webpack-cli] Unknown value for '--help' option, please use '--help=verbose'"`; - -exports[`help should log error for invalid command using the "--help" option: stdout 1`] = `""`; - -exports[`help should log error for invalid flag with the "--help" option #2 1`] = `"[webpack-cli] Unknown value for '--help' option, please use '--help=verbose'"`; - -exports[`help should log error for invalid flag with the "--help" option #2: stderr 1`] = `"[webpack-cli] Unknown value for '--help' option, please use '--help=verbose'"`; - -exports[`help should log error for invalid flag with the "--help" option #2: stdout 1`] = `""`; - -exports[`help should log error for invalid flag with the "--help" option: stderr 1`] = ` -"[webpack-cli] Incorrect use of help -[webpack-cli] Please use: 'webpack help [command] [option]' | 'webpack [command] --help' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`help should log error for invalid flag with the "--help" option: stdout 1`] = `""`; - -exports[`help should log error for unknown command using command syntax #2: stderr 1`] = ` -"[webpack-cli] Can't find and load command 'verbose' -[webpack-cli] Run 'webpack --help' to see available commands and options." -`; - -exports[`help should log error for unknown command using command syntax #2: stdout 1`] = `""`; - -exports[`help should log error for unknown command using command syntax: stderr 1`] = ` -"[webpack-cli] Can't find and load command 'myCommand' -[webpack-cli] Run 'webpack --help' to see available commands and options." -`; - -exports[`help should log error for unknown command using command syntax: stdout 1`] = `""`; - -exports[`help should log error for unknown option using command syntax #2: stderr 1`] = ` -"[webpack-cli] Unknown option '--made' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`help should log error for unknown option using command syntax #2: stdout 1`] = `""`; - -exports[`help should log error for unknown option using command syntax #3: stderr 1`] = ` -"[webpack-cli] Unknown option '--made' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`help should log error for unknown option using command syntax #3: stdout 1`] = `""`; - -exports[`help should log error for unknown option using command syntax #4: stderr 1`] = ` -"[webpack-cli] Can't find and load command 'bui' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`help should log error for unknown option using command syntax #4: stdout 1`] = `""`; - -exports[`help should show help information and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack [entries...] [options] -Alternative usage to run commands: webpack [command] [options] - -The build tool for modern web applications. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - -w, --watch Watch for files changes. - --no-watch Do not watch for file changes. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server. - version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack [entries...] [options] -Alternative usage to run commands: webpack [command] [options] - -The build tool for modern web applications. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - -w, --watch Watch for files changes. - --no-watch Do not watch for file changes. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server. - version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information and taking precedence when "--help" and "--version" option using together: stderr 1`] = `""`; - -exports[`help should show help information and taking precedence when "--help" and "--version" option using together: stdout 1`] = ` -"Usage: webpack [entries...] [options] -Alternative usage to run commands: webpack [command] [options] - -The build tool for modern web applications. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - -w, --watch Watch for files changes. - --no-watch Do not watch for file changes. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server. - version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'b' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'b' command using command syntax: stdout 1`] = ` -"Usage: webpack build|bundle|b [entries...] [options] - -Run webpack (default command, can be omitted). - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - -w, --watch Watch for files changes. - --no-watch Do not watch for file changes. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'b' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'b' command using the "--help" option: stdout 1`] = ` -"Usage: webpack build|bundle|b [entries...] [options] - -Run webpack (default command, can be omitted). - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - -w, --watch Watch for files changes. - --no-watch Do not watch for file changes. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'build' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'build' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack build|bundle|b [entries...] [options] - -Run webpack (default command, can be omitted). - -Options: - -c, --config Provide path to a webpack configuration file e.g. - ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using - 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is - a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. - ./src/main.js. - -o, --output-path Output location of the file generated by webpack - e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading - multiple configurations. - --stats [value] It instructs webpack on how to treat the stats - e.g. verbose. - --no-stats Disable stats output. - -w, --watch Watch for files changes. - --no-watch Do not watch for file changes. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', - 'webpack-cli' and 'webpack-dev-server' and - commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'build' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'build' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack build|bundle|b [entries...] [options] - -Run webpack (default command, can be omitted). - -Options: - -c, --config Provide path to a webpack configuration file e.g. - ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using - 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is - a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. - ./src/main.js. - -o, --output-path Output location of the file generated by webpack - e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading - multiple configurations. - --stats [value] It instructs webpack on how to treat the stats - e.g. verbose. - --no-stats Disable stats output. - -w, --watch Watch for files changes. - --no-watch Do not watch for file changes. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', - 'webpack-cli' and 'webpack-dev-server' and - commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'build' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'build' command using command syntax: stdout 1`] = ` -"Usage: webpack build|bundle|b [entries...] [options] - -Run webpack (default command, can be omitted). - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - -w, --watch Watch for files changes. - --no-watch Do not watch for file changes. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'build' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'build' command using the "--help" option: stdout 1`] = ` -"Usage: webpack build|bundle|b [entries...] [options] - -Run webpack (default command, can be omitted). - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - -w, --watch Watch for files changes. - --no-watch Do not watch for file changes. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'c' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'c' command using command syntax: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'c' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'c' command using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'configtest' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'configtest' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack configtest|t [config-path] - -Validate a webpack configuration. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' - and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'configtest' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'configtest' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack configtest|t [config-path] - -Validate a webpack configuration. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' - and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'configtest' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'configtest' command using command syntax: stdout 1`] = ` -"Usage: webpack configtest|t [config-path] - -Validate a webpack configuration. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'configtest' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'configtest' command using the "--help" option: stdout 1`] = ` -"Usage: webpack configtest|t [config-path] - -Validate a webpack configuration. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'create' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'create' command using command syntax: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'create' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'create' command using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'i' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'i' command using command syntax: stdout 1`] = ` -"Usage: webpack info|i [options] - -Outputs information about your system. - -Options: - -o, --output To get the output in a specified format ( accept json or markdown ) - -a, --additional-package Adds additional packages to the output - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'i' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'i' command using the "--help" option: stdout 1`] = ` -"Usage: webpack info|i [options] - -Outputs information about your system. - -Options: - -o, --output To get the output in a specified format ( accept json or markdown ) - -a, --additional-package Adds additional packages to the output - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'info' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'info' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack info|i [options] - -Outputs information about your system. - -Options: - -o, --output To get the output in a specified format - ( accept json or markdown ) - -a, --additional-package Adds additional packages to the output - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', - 'webpack-cli' and 'webpack-dev-server' - and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'info' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'info' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack info|i [options] - -Outputs information about your system. - -Options: - -o, --output To get the output in a specified format - ( accept json or markdown ) - -a, --additional-package Adds additional packages to the output - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', - 'webpack-cli' and 'webpack-dev-server' - and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'info' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'info' command using command syntax: stdout 1`] = ` -"Usage: webpack info|i [options] - -Outputs information about your system. - -Options: - -o, --output To get the output in a specified format ( accept json or markdown ) - -a, --additional-package Adds additional packages to the output - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'info' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'info' command using the "--help" option: stdout 1`] = ` -"Usage: webpack info|i [options] - -Outputs information about your system. - -Options: - -o, --output To get the output in a specified format ( accept json or markdown ) - -a, --additional-package Adds additional packages to the output - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'init' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'init' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. - ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default - answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' - and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'init' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'init' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. - ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default - answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' - and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'init' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'init' command using command syntax: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'init' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'init' command using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'l' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'l' command using command syntax: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'l' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'l' command using the "--help" option: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'loader' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'loader' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' - and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'loader' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'loader' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' - and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'loader' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'loader' command using command syntax: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'loader' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'loader' command using the "--help" option: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'n' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'n' command using command syntax: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'n' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'n' command using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'new' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'new' command using command syntax: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'new' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'new' command using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: \\"default\\") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'p' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'p' command using command syntax: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'p' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'p' command using the "--help" option: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'plugin' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'plugin' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' - and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'plugin' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'plugin' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' - and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'plugin' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'plugin' command using command syntax: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'plugin' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'plugin' command using the "--help" option: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: \\"default\\") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 's' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 's' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'serve' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'serve' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'serve' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'serve' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'server' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'server' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 't' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 't' command using command syntax: stdout 1`] = ` -"Usage: webpack configtest|t [config-path] - -Validate a webpack configuration. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 't' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 't' command using the "--help" option: stdout 1`] = ` -"Usage: webpack configtest|t [config-path] - -Validate a webpack configuration. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'w' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'w' command using command syntax: stdout 1`] = ` -"Usage: webpack watch|w [entries...] [options] - -Run webpack and watch for files changes. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'w' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'w' command using the "--help" option: stdout 1`] = ` -"Usage: webpack watch|w [entries...] [options] - -Run webpack and watch for files changes. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'watch' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'watch' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack watch|w [entries...] [options] - -Run webpack and watch for files changes. - -Options: - -c, --config Provide path to a webpack configuration file e.g. - ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using - 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is - a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. - ./src/main.js. - -o, --output-path Output location of the file generated by webpack - e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading - multiple configurations. - --stats [value] It instructs webpack on how to treat the stats - e.g. verbose. - --no-stats Disable stats output. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', - 'webpack-cli' and 'webpack-dev-server' and - commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'watch' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'watch' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack watch|w [entries...] [options] - -Run webpack and watch for files changes. - -Options: - -c, --config Provide path to a webpack configuration file e.g. - ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using - 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is - a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. - ./src/main.js. - -o, --output-path Output location of the file generated by webpack - e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading - multiple configurations. - --stats [value] It instructs webpack on how to treat the stats - e.g. verbose. - --no-stats Disable stats output. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', - 'webpack-cli' and 'webpack-dev-server' and - commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'watch' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'watch' command using command syntax: stdout 1`] = ` -"Usage: webpack watch|w [entries...] [options] - -Run webpack and watch for files changes. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'watch' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'watch' command using the "--help" option: stdout 1`] = ` -"Usage: webpack watch|w [entries...] [options] - -Run webpack and watch for files changes. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using command syntax: stderr 1`] = `""`; - -exports[`help should show help information using command syntax: stdout 1`] = ` -"Usage: webpack [entries...] [options] -Alternative usage to run commands: webpack [command] [options] - -The build tool for modern web applications. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - -w, --watch Watch for files changes. - --no-watch Do not watch for file changes. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server. - version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information using the "--help" option: stdout 1`] = ` -"Usage: webpack [entries...] [options] -Alternative usage to run commands: webpack [command] [options] - -The build tool for modern web applications. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - -w, --watch Watch for files changes. - --no-watch Do not watch for file changes. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server. - version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help --color" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help --color" option: stdout 1`] = ` -"Usage: webpack --color -Description: Enable colors on console. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help --mode" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help --mode" option: stdout 1`] = ` -"Usage: webpack --mode -Description: Defines the mode to pass to webpack. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help --no-color" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help --no-color" option: stdout 1`] = ` -"Usage: webpack --no-color -Description: Disable colors on console. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help --no-stats" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help --no-stats" option: stdout 1`] = ` -"Usage: webpack --no-stats -Description: Disable stats output. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help --stats" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help --stats" option: stdout 1`] = ` -"Usage: webpack --stats [value] -Description: It instructs webpack on how to treat the stats e.g. verbose. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help --target" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help --target" option: stdout 1`] = ` -"Usage: webpack --target -Short: webpack -t -Description: Sets the build target e.g. node. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help --version" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help --version" option: stdout 1`] = ` -"Usage: webpack --version -Short: webpack -v -Description: Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help -v" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help -v" option: stdout 1`] = ` -"Usage: webpack --version -Short: webpack -v -Description: Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help serve --color" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help serve --color" option: stdout 1`] = ` -"Usage: webpack serve --color -Description: Enable colors on console. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help serve --mode" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help serve --mode" option: stdout 1`] = ` -"Usage: webpack serve --mode -Description: Defines the mode to pass to webpack. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information using the "help serve --no-color" option: stderr 1`] = `""`; - -exports[`help should show help information using the "help serve --no-color" option: stdout 1`] = ` -"Usage: webpack serve --no-color -Description: Disable colors on console. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information with options for sub commands: stderr 1`] = `""`; - -exports[`help should show help information with options for sub commands: stdout 1`] = ` -"Usage: webpack info|i [options] - -Outputs information about your system. - -Options: - -o, --output To get the output in a specified format ( accept json or markdown ) - -a, --additional-package Adds additional packages to the output - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show the same information using the "--help" option and command syntax: stderr from command syntax 1`] = `""`; - -exports[`help should show the same information using the "--help" option and command syntax: stderr from option 1`] = `""`; - -exports[`help should show the same information using the "--help" option and command syntax: stdout from command syntax 1`] = ` -"Usage: webpack [entries...] [options] -Alternative usage to run commands: webpack [command] [options] - -The build tool for modern web applications. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - -w, --watch Watch for files changes. - --no-watch Do not watch for file changes. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server. - version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show the same information using the "--help" option and command syntax: stdout from option 1`] = ` -"Usage: webpack [entries...] [options] -Alternative usage to run commands: webpack [command] [options] - -The build tool for modern web applications. - -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --entry The entry point(s) of your application e.g. ./src/main.js. - -o, --output-path Output location of the file generated by webpack e.g. ./dist/. - -t, --target Sets the build target e.g. node. - -d, --devtool Determine source maps to use. - --no-devtool Do not generate source maps. - --mode Defines the mode to pass to webpack. - --name Name of the configuration. Used when loading multiple configurations. - --stats [value] It instructs webpack on how to treat the stats e.g. verbose. - --no-stats Disable stats output. - -w, --watch Watch for files changes. - --no-watch Do not watch for file changes. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Do not stop watching when stdin stream has ended. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server. - version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; diff --git a/test/init/__snapshots__/init.test.js.snap.webpack4 b/test/init/__snapshots__/init.test.js.snap.webpack4 deleted file mode 100644 index aabb58ea072..00000000000 --- a/test/init/__snapshots__/init.test.js.snap.webpack4 +++ /dev/null @@ -1,1278 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`init command recognizes '-f' as an alias for '--force' 1`] = ` -Object { - "description": "My webpack project", - "devDependencies": Object { - "html-webpack-plugin": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "webpack-dev-server": "x.x.x", - "workbox-webpack-plugin": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": Object { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "serve": "webpack serve", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command recognizes '-t' as an alias for '--template' 1`] = ` -Object { - "description": "My webpack project", - "devDependencies": Object { - "html-webpack-plugin": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "webpack-dev-server": "x.x.x", - "workbox-webpack-plugin": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": Object { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "serve": "webpack serve", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should ask question when wrong template is supplied 1`] = ` -Object { - "description": "My webpack project", - "devDependencies": Object { - "html-webpack-plugin": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "webpack-dev-server": "x.x.x", - "workbox-webpack-plugin": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": Object { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "serve": "webpack serve", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should configure WDS as opted 1`] = ` -Object { - "description": "My webpack project", - "devDependencies": Object { - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "webpack-dev-server": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": Object { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "serve": "webpack serve", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should configure WDS as opted 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require(\\"path\\"); - -const isProduction = process.env.NODE_ENV == \\"production\\"; - -const config = { - entry: \\"./src/index.js\\", - output: { - path: path.resolve(__dirname, \\"dist\\"), - }, - devServer: { - open: true, - host: \\"localhost\\", - }, - plugins: [ - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: \\"asset\\", - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = \\"production\\"; - } else { - config.mode = \\"development\\"; - } - return config; -}; -" -`; - -exports[`init command should configure assets modules by default 1`] = ` -Object { - "description": "My webpack project", - "devDependencies": Object { - "html-webpack-plugin": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "webpack-dev-server": "x.x.x", - "workbox-webpack-plugin": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": Object { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "serve": "webpack serve", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should configure assets modules by default 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require(\\"path\\"); -const HtmlWebpackPlugin = require(\\"html-webpack-plugin\\"); -const WorkboxWebpackPlugin = require(\\"workbox-webpack-plugin\\"); - -const isProduction = process.env.NODE_ENV == \\"production\\"; - -const config = { - entry: \\"./src/index.js\\", - output: { - path: path.resolve(__dirname, \\"dist\\"), - }, - devServer: { - open: true, - host: \\"localhost\\", - }, - plugins: [ - new HtmlWebpackPlugin({ - template: \\"index.html\\", - }), - - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: \\"asset\\", - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = \\"production\\"; - - config.plugins.push(new WorkboxWebpackPlugin.GenerateSW()); - } else { - config.mode = \\"development\\"; - } - return config; -}; -" -`; - -exports[`init command should configure html-webpack-plugin as opted 1`] = ` -Object { - "description": "My webpack project", - "devDependencies": Object { - "html-webpack-plugin": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": Object { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should configure html-webpack-plugin as opted 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require(\\"path\\"); -const HtmlWebpackPlugin = require(\\"html-webpack-plugin\\"); - -const isProduction = process.env.NODE_ENV == \\"production\\"; - -const config = { - entry: \\"./src/index.js\\", - output: { - path: path.resolve(__dirname, \\"dist\\"), - }, - plugins: [ - new HtmlWebpackPlugin({ - template: \\"index.html\\", - }), - - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: \\"asset\\", - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = \\"production\\"; - } else { - config.mode = \\"development\\"; - } - return config; -}; -" -`; - -exports[`init command should configure workbox-webpack-plugin as opted 1`] = ` -Object { - "description": "My webpack project", - "devDependencies": Object { - "html-webpack-plugin": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "workbox-webpack-plugin": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": Object { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should configure workbox-webpack-plugin as opted 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require(\\"path\\"); -const HtmlWebpackPlugin = require(\\"html-webpack-plugin\\"); -const WorkboxWebpackPlugin = require(\\"workbox-webpack-plugin\\"); - -const isProduction = process.env.NODE_ENV == \\"production\\"; - -const config = { - entry: \\"./src/index.js\\", - output: { - path: path.resolve(__dirname, \\"dist\\"), - }, - plugins: [ - new HtmlWebpackPlugin({ - template: \\"index.html\\", - }), - - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: \\"asset\\", - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = \\"production\\"; - - config.plugins.push(new WorkboxWebpackPlugin.GenerateSW()); - } else { - config.mode = \\"development\\"; - } - return config; -}; -" -`; - -exports[`init command should generate ES6 project correctly 1`] = ` -Object { - "description": "My webpack project", - "devDependencies": Object { - "@babel/core": "x.x.x", - "@babel/preset-env": "x.x.x", - "babel-loader": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": Object { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should generate ES6 project correctly 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require(\\"path\\"); - -const isProduction = process.env.NODE_ENV == \\"production\\"; - -const config = { - entry: \\"./src/index.js\\", - output: { - path: path.resolve(__dirname, \\"dist\\"), - }, - plugins: [ - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\\\.(js|jsx)$/i, - loader: \\"babel-loader\\", - }, - { - test: /\\\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: \\"asset\\", - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = \\"production\\"; - } else { - config.mode = \\"development\\"; - } - return config; -}; -" -`; - -exports[`init command should generate default project when nothing is passed 1`] = ` -Object { - "description": "My webpack project", - "devDependencies": Object { - "html-webpack-plugin": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "webpack-dev-server": "x.x.x", - "workbox-webpack-plugin": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": Object { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "serve": "webpack serve", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should generate folders if non existing generation path is given 1`] = ` -Object { - "description": "My webpack project", - "devDependencies": Object { - "html-webpack-plugin": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "webpack-dev-server": "x.x.x", - "workbox-webpack-plugin": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": Object { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "serve": "webpack serve", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should generate project when generationPath is supplied 1`] = ` -Object { - "description": "My webpack project", - "devDependencies": Object { - "html-webpack-plugin": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "webpack-dev-server": "x.x.x", - "workbox-webpack-plugin": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": Object { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "serve": "webpack serve", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should generate react template with --force 1`] = ` -Object { - "description": "My webpack project", - "devDependencies": Object { - "@babel/core": "x.x.x", - "@babel/preset-env": "x.x.x", - "@babel/preset-react": "x.x.x", - "babel-loader": "x.x.x", - "html-webpack-plugin": "x.x.x", - "react": "x.x.x", - "react-dom": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "webpack-dev-server": "x.x.x", - "workbox-webpack-plugin": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": Object { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "serve": "webpack serve", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should generate react template with --force 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require(\\"path\\"); -const HtmlWebpackPlugin = require(\\"html-webpack-plugin\\"); -const WorkboxWebpackPlugin = require(\\"workbox-webpack-plugin\\"); - -const isProduction = process.env.NODE_ENV == \\"production\\"; - -const config = { - entry: \\"./src/index.js\\", - output: { - path: path.resolve(__dirname, \\"dist\\"), - }, - devServer: { - open: true, - host: \\"localhost\\", - }, - plugins: [ - new HtmlWebpackPlugin({ - template: \\"index.html\\", - }), - - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\\\.?js$/, - exclude: /node_modules/, - use: { - loader: \\"babel-loader\\", - options: { - presets: [\\"@babel/preset-env\\", \\"@babel/preset-react\\"], - }, - }, - }, - { - test: /\\\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: \\"asset\\", - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, - resolve: { - alias: { - \\"@\\": path.resolve(__dirname, \\"./src/\\"), - }, - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = \\"production\\"; - - config.plugins.push(new WorkboxWebpackPlugin.GenerateSW()); - } else { - config.mode = \\"development\\"; - } - return config; -}; -" -`; - -exports[`init command should generate react template with prompt answers 1`] = ` -Object { - "description": "My webpack project", - "devDependencies": Object { - "html-webpack-plugin": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "webpack-dev-server": "x.x.x", - "workbox-webpack-plugin": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": Object { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "serve": "webpack serve", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should generate react template with prompt answers 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require(\\"path\\"); -const HtmlWebpackPlugin = require(\\"html-webpack-plugin\\"); -const WorkboxWebpackPlugin = require(\\"workbox-webpack-plugin\\"); - -const isProduction = process.env.NODE_ENV == \\"production\\"; - -const config = { - entry: \\"./src/index.js\\", - output: { - path: path.resolve(__dirname, \\"dist\\"), - }, - devServer: { - open: true, - host: \\"localhost\\", - }, - plugins: [ - new HtmlWebpackPlugin({ - template: \\"index.html\\", - }), - - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: \\"asset\\", - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = \\"production\\"; - - config.plugins.push(new WorkboxWebpackPlugin.GenerateSW()); - } else { - config.mode = \\"development\\"; - } - return config; -}; -" -`; - -exports[`init command should generate typescript project correctly 1`] = ` -Object { - "description": "My webpack project", - "devDependencies": Object { - "ts-loader": "x.x.x", - "typescript": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": Object { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should generate typescript project correctly 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require(\\"path\\"); - -const isProduction = process.env.NODE_ENV == \\"production\\"; - -const config = { - entry: \\"./src/index.ts\\", - output: { - path: path.resolve(__dirname, \\"dist\\"), - }, - plugins: [ - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\\\.(ts|tsx)$/i, - loader: \\"ts-loader\\", - exclude: [\\"/node_modules/\\"], - }, - { - test: /\\\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: \\"asset\\", - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, - resolve: { - extensions: [\\".tsx\\", \\".ts\\", \\".jsx\\", \\".js\\", \\"...\\"], - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = \\"production\\"; - } else { - config.mode = \\"development\\"; - } - return config; -}; -" -`; - -exports[`init command should use less in project when selected 1`] = ` -Object { - "description": "My webpack project", - "devDependencies": Object { - "less": "x.x.x", - "less-loader": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": Object { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should use less in project when selected 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require(\\"path\\"); - -const isProduction = process.env.NODE_ENV == \\"production\\"; - -const config = { - entry: \\"./src/index.js\\", - output: { - path: path.resolve(__dirname, \\"dist\\"), - }, - plugins: [ - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\\\.less$/i, - use: [\\"less-loader\\"], - }, - { - test: /\\\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: \\"asset\\", - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = \\"production\\"; - } else { - config.mode = \\"development\\"; - } - return config; -}; -" -`; - -exports[`init command should use mini-css-extract-plugin when selected 1`] = ` -Object { - "description": "My webpack project", - "devDependencies": Object { - "sass": "x.x.x", - "sass-loader": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": Object { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should use mini-css-extract-plugin when selected 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require(\\"path\\"); - -const isProduction = process.env.NODE_ENV == \\"production\\"; - -const config = { - entry: \\"./src/index.js\\", - output: { - path: path.resolve(__dirname, \\"dist\\"), - }, - plugins: [ - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\\\.s[ac]ss$/i, - use: [stylesHandler, \\"css-loader\\", \\"sass-loader\\"], - }, - { - test: /\\\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: \\"asset\\", - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = \\"production\\"; - } else { - config.mode = \\"development\\"; - } - return config; -}; -" -`; - -exports[`init command should use postcss in project when selected 1`] = ` -Object { - "description": "My webpack project", - "devDependencies": Object { - "autoprefixer": "x.x.x", - "css-loader": "x.x.x", - "postcss": "x.x.x", - "postcss-loader": "x.x.x", - "style-loader": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": Object { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should use postcss in project when selected 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require(\\"path\\"); - -const isProduction = process.env.NODE_ENV == \\"production\\"; - -const stylesHandler = \\"style-loader\\"; - -const config = { - entry: \\"./src/index.js\\", - output: { - path: path.resolve(__dirname, \\"dist\\"), - }, - plugins: [ - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\\\.css$/i, - use: [stylesHandler, \\"css-loader\\", \\"postcss-loader\\"], - }, - { - test: /\\\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: \\"asset\\", - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = \\"production\\"; - } else { - config.mode = \\"development\\"; - } - return config; -}; -" -`; - -exports[`init command should use sass and css with postcss in project when selected 1`] = ` -Object { - "description": "My webpack project", - "devDependencies": Object { - "autoprefixer": "x.x.x", - "css-loader": "x.x.x", - "postcss": "x.x.x", - "postcss-loader": "x.x.x", - "sass": "x.x.x", - "sass-loader": "x.x.x", - "style-loader": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": Object { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should use sass and css with postcss in project when selected 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require(\\"path\\"); - -const isProduction = process.env.NODE_ENV == \\"production\\"; - -const stylesHandler = \\"style-loader\\"; - -const config = { - entry: \\"./src/index.js\\", - output: { - path: path.resolve(__dirname, \\"dist\\"), - }, - plugins: [ - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\\\.s[ac]ss$/i, - use: [stylesHandler, \\"css-loader\\", \\"postcss-loader\\", \\"sass-loader\\"], - }, - { - test: /\\\\.css$/i, - use: [stylesHandler, \\"css-loader\\", \\"postcss-loader\\"], - }, - { - test: /\\\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: \\"asset\\", - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = \\"production\\"; - } else { - config.mode = \\"development\\"; - } - return config; -}; -" -`; - -exports[`init command should use sass in project when selected 1`] = ` -Object { - "description": "My webpack project", - "devDependencies": Object { - "sass": "x.x.x", - "sass-loader": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": Object { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should use sass in project when selected 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require(\\"path\\"); - -const isProduction = process.env.NODE_ENV == \\"production\\"; - -const config = { - entry: \\"./src/index.js\\", - output: { - path: path.resolve(__dirname, \\"dist\\"), - }, - plugins: [ - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\\\.s[ac]ss$/i, - use: [stylesHandler, \\"css-loader\\", \\"sass-loader\\"], - }, - { - test: /\\\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: \\"asset\\", - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = \\"production\\"; - } else { - config.mode = \\"development\\"; - } - return config; -}; -" -`; - -exports[`init command should use sass with postcss in project when selected 1`] = ` -Object { - "description": "My webpack project", - "devDependencies": Object { - "autoprefixer": "x.x.x", - "postcss": "x.x.x", - "postcss-loader": "x.x.x", - "sass": "x.x.x", - "sass-loader": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": Object { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should use sass with postcss in project when selected 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require(\\"path\\"); - -const isProduction = process.env.NODE_ENV == \\"production\\"; - -const config = { - entry: \\"./src/index.js\\", - output: { - path: path.resolve(__dirname, \\"dist\\"), - }, - plugins: [ - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\\\.s[ac]ss$/i, - use: [stylesHandler, \\"css-loader\\", \\"postcss-loader\\", \\"sass-loader\\"], - }, - { - test: /\\\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: \\"asset\\", - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = \\"production\\"; - } else { - config.mode = \\"development\\"; - } - return config; -}; -" -`; - -exports[`init command should use stylus in project when selected 1`] = ` -Object { - "description": "My webpack project", - "devDependencies": Object { - "stylus": "x.x.x", - "stylus-loader": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": Object { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should use stylus in project when selected 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require(\\"path\\"); - -const isProduction = process.env.NODE_ENV == \\"production\\"; - -const config = { - entry: \\"./src/index.js\\", - output: { - path: path.resolve(__dirname, \\"dist\\"), - }, - plugins: [ - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\\\.styl$/i, - use: [\\"stylus-loader\\"], - }, - { - test: /\\\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: \\"asset\\", - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = \\"production\\"; - } else { - config.mode = \\"development\\"; - } - return config; -}; -" -`; - -exports[`init command should work with 'c' alias 1`] = ` -Object { - "description": "My webpack project", - "devDependencies": Object { - "html-webpack-plugin": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "webpack-dev-server": "x.x.x", - "workbox-webpack-plugin": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": Object { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "serve": "webpack serve", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should work with 'create' alias 1`] = ` -Object { - "description": "My webpack project", - "devDependencies": Object { - "html-webpack-plugin": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "webpack-dev-server": "x.x.x", - "workbox-webpack-plugin": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": Object { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "serve": "webpack serve", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should work with 'n' alias 1`] = ` -Object { - "description": "My webpack project", - "devDependencies": Object { - "html-webpack-plugin": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "webpack-dev-server": "x.x.x", - "workbox-webpack-plugin": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": Object { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "serve": "webpack serve", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should work with 'new' alias 1`] = ` -Object { - "description": "My webpack project", - "devDependencies": Object { - "html-webpack-plugin": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "webpack-dev-server": "x.x.x", - "workbox-webpack-plugin": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": Object { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "serve": "webpack serve", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command uses yarn as the package manager when opted 1`] = ` -Object { - "description": "My webpack project", - "devDependencies": Object { - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": Object { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; diff --git a/test/serve/basic/__snapshots__/serve-basic.test.js.snap.devServer3.webpack4 b/test/serve/basic/__snapshots__/serve-basic.test.js.snap.devServer3.webpack4 deleted file mode 100644 index c875b524add..00000000000 --- a/test/serve/basic/__snapshots__/serve-basic.test.js.snap.devServer3.webpack4 +++ /dev/null @@ -1,83 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`basic serve usage should log an error on unknown flag: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '--unknown-flag' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`basic serve usage should log an error on unknown flag: stdout 1`] = `""`; - -exports[`basic serve usage should log error on using '--watch' flag with serve: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '--watch' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`basic serve usage should log error on using '--watch' flag with serve: stdout 1`] = `""`; - -exports[`basic serve usage should log error on using '-w' alias with serve: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '-w' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`basic serve usage should log error on using '-w' alias with serve: stdout 1`] = `""`; - -exports[`basic serve usage should log used supplied config with serve: stderr 1`] = ` -" [webpack-cli] Compiler starting... - [webpack-cli] Compiler is using config: '/test/serve/basic/log.config.js' - [webpack-cli] Compiler finished - [webpack-cli] Compiler is watching files for updates..." -`; - -exports[`basic serve usage should respect the "publicPath" option from configuration (from the "devServer" options): stderr 1`] = `""`; - -exports[`basic serve usage should respect the "publicPath" option from configuration using multi compiler mode (from the "devServer" options): stderr 1`] = `""`; - -exports[`basic serve usage should respect the "publicPath" option from configuration using multi compiler mode: stderr 1`] = `""`; - -exports[`basic serve usage should respect the "publicPath" option from configuration: stderr 1`] = `""`; - -exports[`basic serve usage should throw error when same ports in multicompiler: stderr 1`] = ` -"[webpack-cli] Error: Unique ports must be specified for each devServer option in your webpack configuration. Alternatively, run only 1 devServer config using the --config-name flag to specify your desired config. - at stack" -`; - -exports[`basic serve usage should throw error when same ports in multicompiler: stdout 1`] = `""`; - -exports[`basic serve usage should work and log warning on the \`watch option in a configuration: stderr 1`] = `"[webpack-cli] No need to use the 'serve' command together with '{ watch: true }' configuration, it does not make sense."`; - -exports[`basic serve usage should work in multi compiler mode: stderr 1`] = `""`; - -exports[`basic serve usage should work with entries syntax: stderr 1`] = `""`; - -exports[`basic serve usage should work with the "--client-log-level" option: stderr 1`] = `""`; - -exports[`basic serve usage should work with the "--config" and "--env" options: stderr 1`] = `""`; - -exports[`basic serve usage should work with the "--config" option: stderr 1`] = `""`; - -exports[`basic serve usage should work with the "--mode" option #2: stderr 1`] = `""`; - -exports[`basic serve usage should work with the "--mode" option #3: stderr 1`] = `""`; - -exports[`basic serve usage should work with the "--mode" option: stderr 1`] = `""`; - -exports[`basic serve usage should work with the "--open" option: stderr 1`] = `""`; - -exports[`basic serve usage should work with the "--output-public-path" option: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '--output-public-path' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`basic serve usage should work with the "--output-public-path" option: stdout 1`] = `""`; - -exports[`basic serve usage should work with the "--port" option: stderr 1`] = `""`; - -exports[`basic serve usage should work with the "--stats verbose" option: stderr 1`] = `""`; - -exports[`basic serve usage should work with the "--stats" option: stderr 1`] = `""`; - -exports[`basic serve usage should work with the "stats" option in config: stderr 1`] = `""`; - -exports[`basic serve usage should work with the default "publicPath" option: stderr 1`] = `""`; - -exports[`basic serve usage should work: stderr 1`] = `""`; diff --git a/test/serve/basic/__snapshots__/serve-basic.test.js.snap.devServer3.webpack5 b/test/serve/basic/__snapshots__/serve-basic.test.js.snap.devServer3.webpack5 deleted file mode 100644 index 3c544b277b1..00000000000 --- a/test/serve/basic/__snapshots__/serve-basic.test.js.snap.devServer3.webpack5 +++ /dev/null @@ -1,78 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`basic serve usage should log an error on unknown flag: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '--unknown-flag' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`basic serve usage should log an error on unknown flag: stdout 1`] = `""`; - -exports[`basic serve usage should log error on using '--watch' flag with serve: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '--watch' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`basic serve usage should log error on using '--watch' flag with serve: stdout 1`] = `""`; - -exports[`basic serve usage should log error on using '-w' alias with serve: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '-w' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`basic serve usage should log error on using '-w' alias with serve: stdout 1`] = `""`; - -exports[`basic serve usage should log used supplied config with serve: stderr 1`] = ` -" [webpack-cli] Compiler starting... - [webpack-cli] Compiler is using config: '/test/serve/basic/log.config.js' - [webpack-cli] Compiler finished - [webpack-cli] Compiler is watching files for updates..." -`; - -exports[`basic serve usage should respect the "publicPath" option from configuration (from the "devServer" options): stderr 1`] = `""`; - -exports[`basic serve usage should respect the "publicPath" option from configuration using multi compiler mode (from the "devServer" options): stderr 1`] = `""`; - -exports[`basic serve usage should respect the "publicPath" option from configuration using multi compiler mode: stderr 1`] = `""`; - -exports[`basic serve usage should respect the "publicPath" option from configuration: stderr 1`] = `""`; - -exports[`basic serve usage should throw error when same ports in multicompiler: stderr 1`] = ` -"[webpack-cli] Error: Unique ports must be specified for each devServer option in your webpack configuration. Alternatively, run only 1 devServer config using the --config-name flag to specify your desired config. - at stack" -`; - -exports[`basic serve usage should throw error when same ports in multicompiler: stdout 1`] = `""`; - -exports[`basic serve usage should work and log warning on the \`watch option in a configuration: stderr 1`] = `"[webpack-cli] No need to use the 'serve' command together with '{ watch: true }' configuration, it does not make sense."`; - -exports[`basic serve usage should work in multi compiler mode: stderr 1`] = `""`; - -exports[`basic serve usage should work with entries syntax: stderr 1`] = `""`; - -exports[`basic serve usage should work with the "--client-log-level" option: stderr 1`] = `""`; - -exports[`basic serve usage should work with the "--config" and "--env" options: stderr 1`] = `""`; - -exports[`basic serve usage should work with the "--config" option: stderr 1`] = `""`; - -exports[`basic serve usage should work with the "--mode" option #2: stderr 1`] = `""`; - -exports[`basic serve usage should work with the "--mode" option #3: stderr 1`] = `""`; - -exports[`basic serve usage should work with the "--mode" option: stderr 1`] = `""`; - -exports[`basic serve usage should work with the "--open" option: stderr 1`] = `""`; - -exports[`basic serve usage should work with the "--output-public-path" option: stderr 1`] = `""`; - -exports[`basic serve usage should work with the "--port" option: stderr 1`] = `""`; - -exports[`basic serve usage should work with the "--stats verbose" option: stderr 1`] = `""`; - -exports[`basic serve usage should work with the "--stats" option: stderr 1`] = `""`; - -exports[`basic serve usage should work with the "stats" option in config: stderr 1`] = `""`; - -exports[`basic serve usage should work with the default "publicPath" option: stderr 1`] = `""`; - -exports[`basic serve usage should work: stderr 1`] = `""`; diff --git a/test/serve/basic/__snapshots__/serve-basic.test.js.snap.devServer4.webpack4 b/test/serve/basic/__snapshots__/serve-basic.test.js.snap.devServer4.webpack4 deleted file mode 100644 index 6b5519a8041..00000000000 --- a/test/serve/basic/__snapshots__/serve-basic.test.js.snap.devServer4.webpack4 +++ /dev/null @@ -1,255 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`basic serve usage should log an error on unknown flag: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '--unknown-flag' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`basic serve usage should log an error on unknown flag: stdout 1`] = `""`; - -exports[`basic serve usage should log error on using '--watch' flag with serve: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '--watch' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`basic serve usage should log error on using '--watch' flag with serve: stdout 1`] = `""`; - -exports[`basic serve usage should log error on using '-w' alias with serve: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '-w' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`basic serve usage should log error on using '-w' alias with serve: stdout 1`] = `""`; - -exports[`basic serve usage should log used supplied config with serve: stderr 1`] = ` -" [webpack-cli] Compiler starting... - [webpack-cli] Compiler is using config: '/test/serve/basic/log.config.js' - [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/basic/public' directory - [webpack-cli] Compiler finished - [webpack-dev-middleware] Compilation finished - [webpack-cli] Compiler is watching files for updates..." -`; - -exports[`basic serve usage should respect the "publicPath" option from configuration (from the "devServer" options): stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/basic/public' directory" -`; - -exports[`basic serve usage should respect the "publicPath" option from configuration using multi compiler mode (from the "devServer" options): stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/basic/public' directory" -`; - -exports[`basic serve usage should respect the "publicPath" option from configuration using multi compiler mode: stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/basic/public' directory" -`; - -exports[`basic serve usage should respect the "publicPath" option from configuration: stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/basic/public' directory" -`; - -exports[`basic serve usage should throw error when same ports in multicompiler: stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/basic/public' directory -[webpack-cli] Error: Unique ports must be specified for each devServer option in your webpack configuration. Alternatively, run only 1 devServer config using the --config-name flag to specify your desired config. - at stack" -`; - -exports[`basic serve usage should throw error when same ports in multicompiler: stdout 1`] = `""`; - -exports[`basic serve usage should work and log warning on the \`watch option in a configuration: stderr 1`] = ` -"[webpack-cli] No need to use the 'serve' command together with '{ watch: true }' configuration, it does not make sense. - [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/basic/public' directory" -`; - -exports[`basic serve usage should work in multi compiler mode: stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/basic/public' directory" -`; - -exports[`basic serve usage should work with "--hot" and "--port" options: stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/basic/public' directory" -`; - -exports[`basic serve usage should work with entries syntax: stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/basic/public' directory" -`; - -exports[`basic serve usage should work with the "--client-log-level" option: stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/basic/public' directory" -`; - -exports[`basic serve usage should work with the "--config" and "--env" options and expose dev server options: stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/basic/public' directory" -`; - -exports[`basic serve usage should work with the "--config" and "--env" options: stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/basic/public' directory" -`; - -exports[`basic serve usage should work with the "--config" option: stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/basic/public' directory" -`; - -exports[`basic serve usage should work with the "--hot" option using the "only" value: stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/basic/public' directory" -`; - -exports[`basic serve usage should work with the "--hot" option: stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/basic/public' directory" -`; - -exports[`basic serve usage should work with the "--mode" option #2: stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/basic/public' directory" -`; - -exports[`basic serve usage should work with the "--mode" option #3: stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/basic/public' directory" -`; - -exports[`basic serve usage should work with the "--mode" option: stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/basic/public' directory" -`; - -exports[`basic serve usage should work with the "--no-hot" option: stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/basic/public' directory" -`; - -exports[`basic serve usage should work with the "--open" option: stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/basic/public' directory" -`; - -exports[`basic serve usage should work with the "--output-public-path" option: stderr 1`] = ` -"[webpack-cli] Error: Unknown option '--output-public-path' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`basic serve usage should work with the "--output-public-path" option: stdout 1`] = `""`; - -exports[`basic serve usage should work with the "--port" option: stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/basic/public' directory" -`; - -exports[`basic serve usage should work with the "--stats verbose" option: stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/basic/public' directory" -`; - -exports[`basic serve usage should work with the "--stats" option: stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/basic/public' directory" -`; - -exports[`basic serve usage should work with the "stats" option in config: stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/basic/public' directory" -`; - -exports[`basic serve usage should work with the default "publicPath" option: stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/basic/public' directory" -`; - -exports[`basic serve usage should work: stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/basic/public' directory" -`; diff --git a/test/serve/invalid-schema/__snapshots__/invalid-schema.test.js.snap.devServer3.webpack4 b/test/serve/invalid-schema/__snapshots__/invalid-schema.test.js.snap.devServer3.webpack4 deleted file mode 100644 index aaeffa7f042..00000000000 --- a/test/serve/invalid-schema/__snapshots__/invalid-schema.test.js.snap.devServer3.webpack4 +++ /dev/null @@ -1,28 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`invalid schema should log webpack error and exit process on invalid config: stderr 1`] = ` -"[webpack-cli] Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - - configuration.mode should be one of these: - \\"development\\" | \\"production\\" | \\"none\\" - -> Enable production optimizations or development hints." -`; - -exports[`invalid schema should log webpack error and exit process on invalid config: stdout 1`] = `""`; - -exports[`invalid schema should log webpack error and exit process on invalid flag: stderr 1`] = ` -"[webpack-cli] Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - - configuration.mode should be one of these: - \\"development\\" | \\"production\\" | \\"none\\" - -> Enable production optimizations or development hints." -`; - -exports[`invalid schema should log webpack error and exit process on invalid flag: stdout 1`] = `""`; - -exports[`invalid schema should log webpack-dev-server error and exit process on invalid config: stderr 1`] = ` -"[webpack-cli] webpack Dev Server Invalid Options - -options.bonjour should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverbonjour) -" -`; - -exports[`invalid schema should log webpack-dev-server error and exit process on invalid config: stdout 1`] = `""`; diff --git a/test/serve/invalid-schema/__snapshots__/invalid-schema.test.js.snap.devServer3.webpack5 b/test/serve/invalid-schema/__snapshots__/invalid-schema.test.js.snap.devServer3.webpack5 deleted file mode 100644 index 592e306ed93..00000000000 --- a/test/serve/invalid-schema/__snapshots__/invalid-schema.test.js.snap.devServer3.webpack5 +++ /dev/null @@ -1,26 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`invalid schema should log webpack error and exit process on invalid config: stderr 1`] = ` -"[webpack-cli] Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema. - - configuration.mode should be one of these: - \\"development\\" | \\"production\\" | \\"none\\" - -> Enable production optimizations or development hints." -`; - -exports[`invalid schema should log webpack error and exit process on invalid config: stdout 1`] = `""`; - -exports[`invalid schema should log webpack error and exit process on invalid flag: stderr 1`] = ` -"[webpack-cli] Invalid value 'Yukihira' for the '--mode' option -[webpack-cli] Expected: 'development | production | none'" -`; - -exports[`invalid schema should log webpack error and exit process on invalid flag: stdout 1`] = `""`; - -exports[`invalid schema should log webpack-dev-server error and exit process on invalid config: stderr 1`] = ` -"[webpack-cli] webpack Dev Server Invalid Options - -options.bonjour should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverbonjour) -" -`; - -exports[`invalid schema should log webpack-dev-server error and exit process on invalid config: stdout 1`] = `""`; diff --git a/test/serve/invalid-schema/__snapshots__/invalid-schema.test.js.snap.devServer4.webpack4 b/test/serve/invalid-schema/__snapshots__/invalid-schema.test.js.snap.devServer4.webpack4 deleted file mode 100644 index 6a6f81a5138..00000000000 --- a/test/serve/invalid-schema/__snapshots__/invalid-schema.test.js.snap.devServer4.webpack4 +++ /dev/null @@ -1,32 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`invalid schema should log webpack error and exit process on invalid config: stderr 1`] = ` -"[webpack-cli] Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - - configuration.mode should be one of these: - \\"development\\" | \\"production\\" | \\"none\\" - -> Enable production optimizations or development hints." -`; - -exports[`invalid schema should log webpack error and exit process on invalid config: stdout 1`] = `""`; - -exports[`invalid schema should log webpack error and exit process on invalid flag: stderr 1`] = ` -"[webpack-cli] Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - - configuration.mode should be one of these: - \\"development\\" | \\"production\\" | \\"none\\" - -> Enable production optimizations or development hints." -`; - -exports[`invalid schema should log webpack error and exit process on invalid flag: stdout 1`] = `""`; - -exports[`invalid schema should log webpack-dev-server error and exit process on invalid config: stderr 1`] = ` -"[webpack-cli] Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - - options.bonjour should be one of these: - boolean | object { … } - -> Allows to broadcasts dev server via ZeroConf networking on start. - -> Read more - at stack - -> Options for bonjour. - -> Read more at https://github.com/watson/bonjour#initializing" -`; - -exports[`invalid schema should log webpack-dev-server error and exit process on invalid config: stdout 1`] = `""`; diff --git a/test/serve/serve-variable/__snapshots__/serve-variable.test.js.snap.devServer3.webpack4 b/test/serve/serve-variable/__snapshots__/serve-variable.test.js.snap.devServer3.webpack4 deleted file mode 100644 index c60d10f6646..00000000000 --- a/test/serve/serve-variable/__snapshots__/serve-variable.test.js.snap.devServer3.webpack4 +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`serve variable compiles without flags and export variable 1`] = `""`; diff --git a/test/serve/serve-variable/__snapshots__/serve-variable.test.js.snap.devServer3.webpack5 b/test/serve/serve-variable/__snapshots__/serve-variable.test.js.snap.devServer3.webpack5 deleted file mode 100644 index c60d10f6646..00000000000 --- a/test/serve/serve-variable/__snapshots__/serve-variable.test.js.snap.devServer3.webpack5 +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`serve variable compiles without flags and export variable 1`] = `""`; diff --git a/test/serve/serve-variable/__snapshots__/serve-variable.test.js.snap.devServer4.webpack4 b/test/serve/serve-variable/__snapshots__/serve-variable.test.js.snap.devServer4.webpack4 deleted file mode 100644 index 3fb634186bc..00000000000 --- a/test/serve/serve-variable/__snapshots__/serve-variable.test.js.snap.devServer4.webpack4 +++ /dev/null @@ -1,9 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`serve variable compiles without flags and export variable 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/serve-variable/public' directory" -`; diff --git a/test/serve/with-custom-port/__snapshots__/serve-custom-config.test.js.snap.devServer3.webpack4 b/test/serve/with-custom-port/__snapshots__/serve-custom-config.test.js.snap.devServer3.webpack4 deleted file mode 100644 index bd9027e9cb1..00000000000 --- a/test/serve/with-custom-port/__snapshots__/serve-custom-config.test.js.snap.devServer3.webpack4 +++ /dev/null @@ -1,5 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`serve with devServer in config Port flag should override the config port: stderr 1`] = `""`; - -exports[`serve with devServer in config Should pick up the host and port from config: stderr 1`] = `""`; diff --git a/test/serve/with-custom-port/__snapshots__/serve-custom-config.test.js.snap.devServer3.webpack5 b/test/serve/with-custom-port/__snapshots__/serve-custom-config.test.js.snap.devServer3.webpack5 deleted file mode 100644 index bd9027e9cb1..00000000000 --- a/test/serve/with-custom-port/__snapshots__/serve-custom-config.test.js.snap.devServer3.webpack5 +++ /dev/null @@ -1,5 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`serve with devServer in config Port flag should override the config port: stderr 1`] = `""`; - -exports[`serve with devServer in config Should pick up the host and port from config: stderr 1`] = `""`; diff --git a/test/serve/with-custom-port/__snapshots__/serve-custom-config.test.js.snap.devServer4.webpack4 b/test/serve/with-custom-port/__snapshots__/serve-custom-config.test.js.snap.devServer4.webpack4 deleted file mode 100644 index 893b938dd83..00000000000 --- a/test/serve/with-custom-port/__snapshots__/serve-custom-config.test.js.snap.devServer4.webpack4 +++ /dev/null @@ -1,33 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`serve with devServer in config Passing hot flag works alongside other server config: stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/with-custom-port/public' directory" -`; - -exports[`serve with devServer in config Port flag should override the config port: stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/with-custom-port/public' directory" -`; - -exports[`serve with devServer in config Should pick up the host and port from config: stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/with-custom-port/public' directory" -`; - -exports[`serve with devServer in config works fine when no-hot flag is passed alongside other server config: stderr 1`] = ` -" [webpack-dev-server] Project is running at: - [webpack-dev-server] Loopback: http://localhost:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/test/serve/with-custom-port/public' directory" -`; diff --git a/test/version/__snapshots__/version.test.js.snap.webpack4 b/test/version/__snapshots__/version.test.js.snap.webpack4 deleted file mode 100644 index 0a4ec7c79bd..00000000000 --- a/test/version/__snapshots__/version.test.js.snap.webpack4 +++ /dev/null @@ -1,333 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`single version flag outputs version with b: stderr 1`] = `""`; - -exports[`single version flag outputs version with b: stdout 1`] = ` -"webpack: x.x.x -webpack-cli: x.x.x -webpack-dev-server x.x.x" -`; - -exports[`single version flag outputs version with build: stderr 1`] = `""`; - -exports[`single version flag outputs version with build: stdout 1`] = ` -"webpack: x.x.x -webpack-cli: x.x.x -webpack-dev-server x.x.x" -`; - -exports[`single version flag outputs version with bundle: stderr 1`] = `""`; - -exports[`single version flag outputs version with bundle: stdout 1`] = ` -"webpack: x.x.x -webpack-cli: x.x.x -webpack-dev-server x.x.x" -`; - -exports[`single version flag outputs version with info using command alias: stderr 1`] = `""`; - -exports[`single version flag outputs version with info using command alias: stdout 1`] = ` -"@webpack-cli/info x.x.x -webpack: x.x.x -webpack-cli: x.x.x -webpack-dev-server x.x.x" -`; - -exports[`single version flag outputs version with info using command syntax: stderr 1`] = `""`; - -exports[`single version flag outputs version with info using command syntax: stdout 1`] = ` -"@webpack-cli/info x.x.x -webpack: x.x.x -webpack-cli: x.x.x -webpack-dev-server x.x.x" -`; - -exports[`single version flag outputs version with info using option alias: stderr 1`] = `""`; - -exports[`single version flag outputs version with info using option alias: stdout 1`] = ` -"@webpack-cli/info x.x.x -webpack: x.x.x -webpack-cli: x.x.x -webpack-dev-server x.x.x" -`; - -exports[`single version flag outputs version with info: stderr 1`] = `""`; - -exports[`single version flag outputs version with info: stdout 1`] = ` -"@webpack-cli/info x.x.x -webpack: x.x.x -webpack-cli: x.x.x -webpack-dev-server x.x.x" -`; - -exports[`single version flag outputs version with init: stderr 1`] = `""`; - -exports[`single version flag outputs version with init: stdout 1`] = ` -"@webpack-cli/generators x.x.x -webpack: x.x.x -webpack-cli: x.x.x -webpack-dev-server x.x.x" -`; - -exports[`single version flag outputs version with loader: stderr 1`] = `""`; - -exports[`single version flag outputs version with loader: stdout 1`] = ` -"@webpack-cli/generators x.x.x -webpack: x.x.x -webpack-cli: x.x.x -webpack-dev-server x.x.x" -`; - -exports[`single version flag outputs version with plugin: stderr 1`] = `""`; - -exports[`single version flag outputs version with plugin: stdout 1`] = ` -"@webpack-cli/generators x.x.x -webpack: x.x.x -webpack-cli: x.x.x -webpack-dev-server x.x.x" -`; - -exports[`single version flag outputs version with serve: stderr 1`] = `""`; - -exports[`single version flag outputs version with serve: stdout 1`] = ` -"@webpack-cli/serve x.x.x -webpack: x.x.x -webpack-cli: x.x.x -webpack-dev-server x.x.x" -`; - -exports[`single version flag outputs version with the alias c for init: stderr 1`] = `""`; - -exports[`single version flag outputs version with the alias c for init: stdout 1`] = ` -"@webpack-cli/generators x.x.x -webpack: x.x.x -webpack-cli: x.x.x -webpack-dev-server x.x.x" -`; - -exports[`single version flag outputs version with w: stderr 1`] = `""`; - -exports[`single version flag outputs version with w: stdout 1`] = ` -"webpack: x.x.x -webpack-cli: x.x.x -webpack-dev-server x.x.x" -`; - -exports[`single version flag outputs version with watch: stderr 1`] = `""`; - -exports[`single version flag outputs version with watch: stdout 1`] = ` -"webpack: x.x.x -webpack-cli: x.x.x -webpack-dev-server x.x.x" -`; - -exports[`single version flag outputs versions with --color using command syntax: stderr 1`] = `""`; - -exports[`single version flag outputs versions with --color using command syntax: stdout 1`] = ` -"webpack: x.x.x -webpack-cli: x.x.x -webpack-dev-server x.x.x" -`; - -exports[`single version flag outputs versions with --color using option syntax: stderr 1`] = `""`; - -exports[`single version flag outputs versions with --color using option syntax: stdout 1`] = ` -"webpack: x.x.x -webpack-cli: x.x.x -webpack-dev-server x.x.x" -`; - -exports[`single version flag outputs versions with --no-color using command syntax: stderr 1`] = `""`; - -exports[`single version flag outputs versions with --no-color using command syntax: stdout 1`] = ` -"webpack: x.x.x -webpack-cli: x.x.x -webpack-dev-server x.x.x" -`; - -exports[`single version flag outputs versions with --no-color using option syntax: stderr 1`] = `""`; - -exports[`single version flag outputs versions with --no-color using option syntax: stdout 1`] = ` -"webpack: x.x.x -webpack-cli: x.x.x -webpack-dev-server x.x.x" -`; - -exports[`single version flag outputs versions with alias syntax: stderr 1`] = `""`; - -exports[`single version flag outputs versions with alias syntax: stdout 1`] = ` -"webpack: x.x.x -webpack-cli: x.x.x -webpack-dev-server x.x.x" -`; - -exports[`single version flag outputs versions with command syntax: stderr 1`] = `""`; - -exports[`single version flag outputs versions with command syntax: stdout 1`] = ` -"webpack: x.x.x -webpack-cli: x.x.x -webpack-dev-server x.x.x" -`; - -exports[`single version flag outputs versions with dashed syntax: stderr 1`] = `""`; - -exports[`single version flag outputs versions with dashed syntax: stdout 1`] = ` -"webpack: x.x.x -webpack-cli: x.x.x -webpack-dev-server x.x.x" -`; - -exports[`single version flag should log an error using command syntax with multiple commands with unknown argument: stderr 1`] = ` -"[webpack-cli] Unknown option '--unknown' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`single version flag should log an error using command syntax with multiple commands with unknown argument: stdout 1`] = `""`; - -exports[`single version flag should log an error using command syntax with unknown argument #2: stderr 1`] = ` -"[webpack-cli] Unknown option '--unknown' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`single version flag should log an error using command syntax with unknown argument #2: stdout 1`] = `""`; - -exports[`single version flag should log an error using command syntax with unknown argument: stderr 1`] = ` -"[webpack-cli] Unknown option '--unknown' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`single version flag should log an error using command syntax with unknown argument: stdout 1`] = `""`; - -exports[`single version flag should log error when unknown command used with --version flag: stderr 1`] = ` -"[webpack-cli] Unknown command 'abc' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`single version flag should log error when unknown command used with --version flag: stdout 1`] = `""`; - -exports[`single version flag should log error when unknown command used with -v alias: stderr 1`] = ` -"[webpack-cli] Unknown command 'abc' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`single version flag should log error when unknown command used with -v alias: stdout 1`] = `""`; - -exports[`single version flag should log error when unknown command used: stderr 1`] = ` -"[webpack-cli] Unknown command 'abc' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`single version flag should log error when unknown command used: stdout 1`] = `""`; - -exports[`single version flag should log error when unknown command using command syntax: stderr 1`] = ` -"[webpack-cli] Unknown command 'unknown' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`single version flag should log error when unknown command using command syntax: stdout 1`] = `""`; - -exports[`single version flag should log version for known command and log error for unknown command using command syntax with multi commands: stderr 1`] = ` -"[webpack-cli] Unknown command 'unknown' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`single version flag should log version for known command and log error for unknown command using command syntax with multi commands: stdout 1`] = `"@webpack-cli/info x.x.x"`; - -exports[`single version flag should log version for known command and log error for unknown command using the "--version" option: stderr 1`] = ` -"[webpack-cli] Unknown command 'abc' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`single version flag should log version for known command and log error for unknown command using the "--version" option: stdout 1`] = `"@webpack-cli/serve x.x.x"`; - -exports[`single version flag should log version for known command and log error for unknown command using the "-v" option: stderr 1`] = ` -"[webpack-cli] Unknown command 'abc' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`single version flag should log version for known command and log error for unknown command using the "-v" option: stdout 1`] = `"@webpack-cli/serve x.x.x"`; - -exports[`single version flag should not output version with help dashed: stderr 1`] = `""`; - -exports[`single version flag should not output version with help dashed: stdout 1`] = ` -"Usage: webpack version|v [commands...] - -Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`single version flag should output versions for multiple commands using command syntax: stderr 1`] = `""`; - -exports[`single version flag should output versions for multiple commands using command syntax: stdout 1`] = ` -"@webpack-cli/info x.x.x -@webpack-cli/serve x.x.x -webpack: x.x.x -webpack-cli: x.x.x -webpack-dev-server x.x.x" -`; - -exports[`single version flag should output versions with help command using command syntax: stderr 1`] = `""`; - -exports[`single version flag should output versions with help command using command syntax: stdout 1`] = ` -"webpack: x.x.x -webpack-cli: x.x.x -webpack-dev-server x.x.x" -`; - -exports[`single version flag should work for multiple commands: stderr 1`] = `""`; - -exports[`single version flag should work for multiple commands: stdout 1`] = ` -"@webpack-cli/info x.x.x -@webpack-cli/serve x.x.x -webpack: x.x.x -webpack-cli: x.x.x -webpack-dev-server x.x.x" -`; - -exports[`single version flag should work using command syntax and the "--version" argument: stderr 1`] = `""`; - -exports[`single version flag should work using command syntax and the "--version" argument: stdout 1`] = ` -"webpack: x.x.x -webpack-cli: x.x.x -webpack-dev-server x.x.x" -`; - -exports[`single version flag should work using command syntax with the "version" value: stderr 1`] = `""`; - -exports[`single version flag should work using command syntax with the "version" value: stdout 1`] = ` -"webpack: x.x.x -webpack-cli: x.x.x -webpack-dev-server x.x.x" -`; - -exports[`single version flag throws error if invalid option is passed with --version flag: stderr 1`] = ` -"[webpack-cli] Unknown option '--abc' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`single version flag throws error if invalid option is passed with --version flag: stdout 1`] = `""`; - -exports[`single version flag throws error if invalid option is passed with -v alias: stderr 1`] = ` -"[webpack-cli] Unknown option '--abc' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`single version flag throws error if invalid option is passed with -v alias: stdout 1`] = `""`; - -exports[`single version flag throws error if invalid option is passed with version command: stderr 1`] = ` -"[webpack-cli] Unknown option '--abc' -[webpack-cli] Run 'webpack --help' to see available commands and options" -`; - -exports[`single version flag throws error if invalid option is passed with version command: stdout 1`] = `""`;