From a56761ed5623f576f2ca881141958a913f3af971 Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Fri, 23 Apr 2021 19:06:04 +0530 Subject: [PATCH] test: enable tests for webpack-dev-server@next (#2573) --- .github/workflows/nodejs.yml | 6 +- package.json | 5 +- test/api/scaffold-utils.test.js | 7 + test/build/mode/mode-with-config/src/index.js | 1 - .../help.test.js.snap.devServer4.webpack4 | 2762 ++++++++++++++++ .../help.test.js.snap.devServer4.webpack5 | 2789 +++++++++++++++++ test/help/help.test.js | 1 + ...rve-basic.test.js.snap.devServer3.webpack4 | 80 + ...rve-basic.test.js.snap.devServer3.webpack5 | 79 + ...rve-basic.test.js.snap.devServer4.webpack4 | 322 ++ ...rve-basic.test.js.snap.devServer4.webpack5 | 324 ++ .../dev-server-output-public-path.config.js | 5 +- .../basic/helper/base-dev-server.config.js | 17 + ...ti-dev-server-output-public-path.config.js | 6 +- test/serve/basic/multi-dev-server.config.js | 5 +- test/serve/basic/multi.config.js | 5 +- .../serve/basic/multiple-dev-server.config.js | 9 +- test/serve/basic/serve-basic.test.js | 260 +- test/serve/basic/stats.config.js | 14 +- ...id-schema.test.js.snap.devServer3.webpack4 | 7 - ...id-schema.test.js.snap.devServer3.webpack5 | 7 - ...id-schema.test.js.snap.devServer4.webpack4 | 27 + ...id-schema.test.js.snap.devServer4.webpack5 | 25 + .../invalid-schema/invalid-schema.test.js | 3 +- ...rve-basic.test.js.snap.devServer3.webpack4 | 2 +- ...rve-basic.test.js.snap.devServer3.webpack5 | 2 +- ...rve-basic.test.js.snap.devServer4.webpack4 | 9 + ...rve-basic.test.js.snap.devServer4.webpack5 | 9 + test/serve/serve-variable/serve-basic.test.js | 12 +- ...om-config.test.js.snap.devServer4.webpack4 | 33 + ...om-config.test.js.snap.devServer4.webpack5 | 33 + .../serve-custom-config.test.js | 51 +- test/serve/with-custom-port/webpack.config.js | 3 +- test/utils/test-utils.js | 65 +- yarn.lock | 50 +- 35 files changed, 6903 insertions(+), 132 deletions(-) create mode 100644 test/help/__snapshots__/help.test.js.snap.devServer4.webpack4 create mode 100644 test/help/__snapshots__/help.test.js.snap.devServer4.webpack5 create mode 100644 test/serve/basic/__snapshots__/serve-basic.test.js.snap.devServer4.webpack4 create mode 100644 test/serve/basic/__snapshots__/serve-basic.test.js.snap.devServer4.webpack5 create mode 100644 test/serve/basic/helper/base-dev-server.config.js create mode 100644 test/serve/invalid-schema/__snapshots__/invalid-schema.test.js.snap.devServer4.webpack4 create mode 100644 test/serve/invalid-schema/__snapshots__/invalid-schema.test.js.snap.devServer4.webpack5 create mode 100644 test/serve/serve-variable/__snapshots__/serve-basic.test.js.snap.devServer4.webpack4 create mode 100644 test/serve/serve-variable/__snapshots__/serve-basic.test.js.snap.devServer4.webpack5 create mode 100644 test/serve/with-custom-port/__snapshots__/serve-custom-config.test.js.snap.devServer4.webpack4 create mode 100644 test/serve/with-custom-port/__snapshots__/serve-custom-config.test.js.snap.devServer4.webpack5 diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index ec7bdf91d30..6e9c6d6f145 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -47,7 +47,7 @@ jobs: run: yarn lint build: - name: Tests and Coverage - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }} + name: Tests and Coverage - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }}, DevServer ${{ matrix.dev-server-version }} runs-on: ${{ matrix.os }} @@ -56,6 +56,7 @@ jobs: os: [ubuntu-latest, windows-latest, macos-latest] node-version: [10.x, 12.x, 14.x] webpack-version: [4, latest] + dev-server-version: [latest, next] steps: - uses: actions/checkout@v2 @@ -84,6 +85,9 @@ jobs: - name: Install webpack ${{ matrix.webpack-version }} run: yarn add -W webpack@${{ matrix.webpack-version }} + - name: Install webpack-dev-server ${{ matrix.webpack-version }} + run: yarn add -W webpack-dev-server@${{ matrix.dev-server-version }} + - name: Prepare environment for tests run: yarn build:ci diff --git a/package.json b/package.json index ac8635387ce..203d2c50dda 100644 --- a/package.json +++ b/package.json @@ -68,6 +68,7 @@ "execa": "^5.0.0", "get-port": "^5.1.1", "husky": "^6.0.0", + "internal-ip": "^6.2.0", "jest": "^26.6.1", "jest-watch-typeahead": "^0.6.1", "lerna": "^4.0.0", @@ -80,8 +81,8 @@ "ts-jest": "^26.5.5", "ts-node": "^9.1.1", "typescript": "^4.1.3", - "webpack": "^5.34.0", + "webpack": "^5.35.0", "webpack-bundle-analyzer": "^4.3.0", - "webpack-dev-server": "^3.11.1" + "webpack-dev-server": "^3.11.2" } } diff --git a/test/api/scaffold-utils.test.js b/test/api/scaffold-utils.test.js index a3dfab4a96f..bea825029f4 100755 --- a/test/api/scaffold-utils.test.js +++ b/test/api/scaffold-utils.test.js @@ -27,6 +27,7 @@ describe('utils', () => { entry: 'Yes', }); }); + it('should emulate a prompt for list input', () => { expect(Input(mockSelf, 'plugins', 'what is your plugin?', 'openJSF')).toEqual({ type: 'input', @@ -35,11 +36,13 @@ describe('utils', () => { default: 'openJSF', }); }); + it('should return a default Input object value', () => { expect(Input(mockSelf, 'plugins', 'what is your plugin?', 'my-plugin', true)).toEqual({ plugins: 'my-plugin', }); }); + it('should emulate a prompt for confirm', () => { expect(Confirm(mockSelf, 'context', 'what is your context?')).toEqual({ name: 'context', @@ -48,17 +51,21 @@ describe('utils', () => { type: 'confirm', }); }); + it('should make a Confirm object with yes as default', () => { expect(Confirm(mockSelf, 'context', 'what is your context?', true, true)).toEqual({ context: true, }); }); + it('should make an Input object with validation', () => { expect(InputValidate(mockSelf, 'plugins', 'what is your plugin?', () => true)).toMatchSnapshot(); }); + it('should make an Input object with validation and default value', () => { expect(InputValidate(mockSelf, 'plugins', 'what is your plugin?', () => true, 'my-plugin')).toMatchSnapshot(); }); + it('should return a default Input object with validation and default value', () => { expect(InputValidate(mockSelf, 'plugins', 'what is your plugin?', () => true, 'my-plugin', true)).toEqual({ plugins: 'my-plugin', diff --git a/test/build/mode/mode-with-config/src/index.js b/test/build/mode/mode-with-config/src/index.js index afb30eca56c..a7f54db75ac 100644 --- a/test/build/mode/mode-with-config/src/index.js +++ b/test/build/mode/mode-with-config/src/index.js @@ -7,4 +7,3 @@ if (process.env.NODE_ENV === "production") { } else { console.log("none mode"); } - diff --git a/test/help/__snapshots__/help.test.js.snap.devServer4.webpack4 b/test/help/__snapshots__/help.test.js.snap.devServer4.webpack4 new file mode 100644 index 00000000000..ffcfd529f1b --- /dev/null +++ b/test/help/__snapshots__/help.test.js.snap.devServer4.webpack4 @@ -0,0 +1,2762 @@ +// 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'. + --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. + migrate|m [new-config-path] Migrate a configuration to a new version. + 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'. + --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. + migrate|m [new-config-path] Migrate a configuration to a new version. + 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'. + --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. + migrate|m [new-config-path] Migrate a configuration to a new version. + 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'. + --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'. + --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'. + --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'. + --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'. + --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'. + --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. + +Options: + --template Type of template (default: \\"default\\") + --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. + +Options: + --template Type of template (default: \\"default\\") + --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. + +Options: + --template Type of template (default: \\"default\\") + --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. + +Options: + --template Type of template (default: \\"default\\") + --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: + --output To get the output in a specified format ( accept json or markdown ) + +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: + --output To get the output in a specified format ( accept json or markdown ) + +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: + --output To get the output in a specified format ( accept json + or markdown ) + +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: + --output To get the output in a specified format ( accept json + or markdown ) + +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: + --output To get the output in a specified format ( accept json or markdown ) + +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: + --output To get the output in a specified format ( accept json or markdown ) + +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. + +Options: + --template Type of template (default: \\"default\\") + --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. + +Options: + --template Type of template (default: \\"default\\") + --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. + +Options: + --template Type of template (default: \\"default\\") + --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. + +Options: + --template Type of template (default: \\"default\\") + --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. + +Options: + --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. + +Options: + --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. + +Options: + --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. + +Options: + --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. + +Options: + --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. + +Options: + --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 'm' command using command syntax: stderr 1`] = `""`; + +exports[`help should show help information for 'm' command using command syntax: stdout 1`] = ` +"Usage: webpack migrate|m [new-config-path] + +Migrate a configuration to a new version. + +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 'm' command using the "--help" option: stderr 1`] = `""`; + +exports[`help should show help information for 'm' command using the "--help" option: stdout 1`] = ` +"Usage: webpack migrate|m [new-config-path] + +Migrate a configuration to a new version. + +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 'migrate' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; + +exports[`help should show help information for 'migrate' and respect the "--color" flag using the "--help" option: stdout 1`] = ` +"Usage: webpack migrate|m [new-config-path] + +Migrate a configuration to a new version. + +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 'migrate' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; + +exports[`help should show help information for 'migrate' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` +"Usage: webpack migrate|m [new-config-path] + +Migrate a configuration to a new version. + +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 'migrate' command using command syntax: stderr 1`] = `""`; + +exports[`help should show help information for 'migrate' command using command syntax: stdout 1`] = ` +"Usage: webpack migrate|m [new-config-path] + +Migrate a configuration to a new version. + +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 'migrate' command using the "--help" option: stderr 1`] = `""`; + +exports[`help should show help information for 'migrate' command using the "--help" option: stdout 1`] = ` +"Usage: webpack migrate|m [new-config-path] + +Migrate a configuration to a new version. + +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. + +Options: + --template Type of template (default: \\"default\\") + --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. + +Options: + --template Type of template (default: \\"default\\") + --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. + +Options: + --template Type of template (default: \\"default\\") + --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. + +Options: + --template Type of template (default: \\"default\\") + --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. + +Options: + --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. + +Options: + --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. + +Options: + --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. + +Options: + --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. + +Options: + --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. + +Options: + --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'. + --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. + --host The hostname/ip address the server will bind to. + --port The port server will listen to. + --static [value...] A directory to serve static content from. + --no-static Negative 'static' option. + --live-reload Enables live reloading on changing files. + --no-live-reload Disables live reloading on changing files. + --https Use HTTPS protocol. + --no-https Do not use HTTPS protocol. + --http2 Use HTTP/2, must be used with HTTPS. + --no-http2 Do not use HTTP/2. + --bonjour Broadcasts the server via ZeroConf networking on start. + --no-bonjour Do not broadcast the server via ZeroConf networking on start. + --client-progress Print compilation progress in percentage in the browser. + --no-client-progress Do not print compilation progress in percentage in the browser. + --client-overlay Show a full-screen overlay in the browser when there are compiler errors or warnings. + --no-client-overlay Do not show a full-screen overlay in the browser when there are compiler errors or warnings. + --setup-exit-signals Close and exit the process on SIGINT and SIGTERM. + --no-setup-exit-signals Do not close and exit the process on SIGNIT and SIGTERM. + --open [value...] Open the default browser. + --no-open Do not open the default browser. + --open-app Open specified browser. + --open-target [value...] Open specified route in browser. + --no-open-target Do not open specified route in browser. + --client-logging Log level in the browser (none, error, warn, info, log, verbose). + --history-api-fallback Fallback to /index.html for Single Page Applications. + --no-history-api-fallback Do not fallback to /index.html for Single Page Applications. + --compress Enable gzip compression. + --no-compress Disable gzip compression. + --public The public hostname/ip address of the server. + --firewall [value...] Enable firewall or set hosts that are allowed to access the dev server. + --no-firewall Disable firewall. + --watch-files Watch static files for file changes. + +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'. + --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. + --host The hostname/ip address the server will bind to. + --port The port server will listen to. + --static [value...] A directory to serve static content from. + --no-static Negative 'static' option. + --live-reload Enables live reloading on changing files. + --no-live-reload Disables live reloading on changing files. + --https Use HTTPS protocol. + --no-https Do not use HTTPS protocol. + --http2 Use HTTP/2, must be used with HTTPS. + --no-http2 Do not use HTTP/2. + --bonjour Broadcasts the server via ZeroConf networking on start. + --no-bonjour Do not broadcast the server via ZeroConf networking on start. + --client-progress Print compilation progress in percentage in the browser. + --no-client-progress Do not print compilation progress in percentage in the browser. + --client-overlay Show a full-screen overlay in the browser when there are compiler errors or warnings. + --no-client-overlay Do not show a full-screen overlay in the browser when there are compiler errors or warnings. + --setup-exit-signals Close and exit the process on SIGINT and SIGTERM. + --no-setup-exit-signals Do not close and exit the process on SIGNIT and SIGTERM. + --open [value...] Open the default browser. + --no-open Do not open the default browser. + --open-app Open specified browser. + --open-target [value...] Open specified route in browser. + --no-open-target Do not open specified route in browser. + --client-logging Log level in the browser (none, error, warn, info, log, verbose). + --history-api-fallback Fallback to /index.html for Single Page Applications. + --no-history-api-fallback Do not fallback to /index.html for Single Page Applications. + --compress Enable gzip compression. + --no-compress Disable gzip compression. + --public The public hostname/ip address of the server. + --firewall [value...] Enable firewall or set hosts that are allowed to access the dev server. + --no-firewall Disable firewall. + --watch-files Watch static files for file changes. + +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'. + --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. + --host The hostname/ip address the server will bind to. + --port The port server will listen to. + --static [value...] A directory to serve static content from. + --no-static Negative 'static' option. + --live-reload Enables live reloading on changing files. + --no-live-reload Disables live reloading on changing files. + --https Use HTTPS protocol. + --no-https Do not use HTTPS protocol. + --http2 Use HTTP/2, must be used with HTTPS. + --no-http2 Do not use HTTP/2. + --bonjour Broadcasts the server via ZeroConf networking on + start. + --no-bonjour Do not broadcast the server via ZeroConf + networking on start. + --client-progress Print compilation progress in percentage in the + browser. + --no-client-progress Do not print compilation progress in percentage in + the browser. + --client-overlay Show a full-screen overlay in the browser when + there are compiler errors or warnings. + --no-client-overlay Do not show a full-screen overlay in the browser + when there are compiler errors or warnings. + --setup-exit-signals Close and exit the process on SIGINT and SIGTERM. + --no-setup-exit-signals Do not close and exit the process on SIGNIT and + SIGTERM. + --open [value...] Open the default browser. + --no-open Do not open the default browser. + --open-app Open specified browser. + --open-target [value...] Open specified route in browser. + --no-open-target Do not open specified route in browser. + --client-logging Log level in the browser (none, error, warn, info, + log, verbose). + --history-api-fallback Fallback to /index.html for Single Page + Applications. + --no-history-api-fallback Do not fallback to /index.html for Single Page + Applications. + --compress Enable gzip compression. + --no-compress Disable gzip compression. + --public The public hostname/ip address of the server. + --firewall [value...] Enable firewall or set hosts that are allowed to + access the dev server. + --no-firewall Disable firewall. + --watch-files Watch static files for file changes. + +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'. + --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. + --host The hostname/ip address the server will bind to. + --port The port server will listen to. + --static [value...] A directory to serve static content from. + --no-static Negative 'static' option. + --live-reload Enables live reloading on changing files. + --no-live-reload Disables live reloading on changing files. + --https Use HTTPS protocol. + --no-https Do not use HTTPS protocol. + --http2 Use HTTP/2, must be used with HTTPS. + --no-http2 Do not use HTTP/2. + --bonjour Broadcasts the server via ZeroConf networking on + start. + --no-bonjour Do not broadcast the server via ZeroConf + networking on start. + --client-progress Print compilation progress in percentage in the + browser. + --no-client-progress Do not print compilation progress in percentage in + the browser. + --client-overlay Show a full-screen overlay in the browser when + there are compiler errors or warnings. + --no-client-overlay Do not show a full-screen overlay in the browser + when there are compiler errors or warnings. + --setup-exit-signals Close and exit the process on SIGINT and SIGTERM. + --no-setup-exit-signals Do not close and exit the process on SIGNIT and + SIGTERM. + --open [value...] Open the default browser. + --no-open Do not open the default browser. + --open-app Open specified browser. + --open-target [value...] Open specified route in browser. + --no-open-target Do not open specified route in browser. + --client-logging Log level in the browser (none, error, warn, info, + log, verbose). + --history-api-fallback Fallback to /index.html for Single Page + Applications. + --no-history-api-fallback Do not fallback to /index.html for Single Page + Applications. + --compress Enable gzip compression. + --no-compress Disable gzip compression. + --public The public hostname/ip address of the server. + --firewall [value...] Enable firewall or set hosts that are allowed to + access the dev server. + --no-firewall Disable firewall. + --watch-files Watch static files for file changes. + +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'. + --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. + --host The hostname/ip address the server will bind to. + --port The port server will listen to. + --static [value...] A directory to serve static content from. + --no-static Negative 'static' option. + --live-reload Enables live reloading on changing files. + --no-live-reload Disables live reloading on changing files. + --https Use HTTPS protocol. + --no-https Do not use HTTPS protocol. + --http2 Use HTTP/2, must be used with HTTPS. + --no-http2 Do not use HTTP/2. + --bonjour Broadcasts the server via ZeroConf networking on start. + --no-bonjour Do not broadcast the server via ZeroConf networking on start. + --client-progress Print compilation progress in percentage in the browser. + --no-client-progress Do not print compilation progress in percentage in the browser. + --client-overlay Show a full-screen overlay in the browser when there are compiler errors or warnings. + --no-client-overlay Do not show a full-screen overlay in the browser when there are compiler errors or warnings. + --setup-exit-signals Close and exit the process on SIGINT and SIGTERM. + --no-setup-exit-signals Do not close and exit the process on SIGNIT and SIGTERM. + --open [value...] Open the default browser. + --no-open Do not open the default browser. + --open-app Open specified browser. + --open-target [value...] Open specified route in browser. + --no-open-target Do not open specified route in browser. + --client-logging Log level in the browser (none, error, warn, info, log, verbose). + --history-api-fallback Fallback to /index.html for Single Page Applications. + --no-history-api-fallback Do not fallback to /index.html for Single Page Applications. + --compress Enable gzip compression. + --no-compress Disable gzip compression. + --public The public hostname/ip address of the server. + --firewall [value...] Enable firewall or set hosts that are allowed to access the dev server. + --no-firewall Disable firewall. + --watch-files Watch static files for file changes. + +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'. + --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. + --host The hostname/ip address the server will bind to. + --port The port server will listen to. + --static [value...] A directory to serve static content from. + --no-static Negative 'static' option. + --live-reload Enables live reloading on changing files. + --no-live-reload Disables live reloading on changing files. + --https Use HTTPS protocol. + --no-https Do not use HTTPS protocol. + --http2 Use HTTP/2, must be used with HTTPS. + --no-http2 Do not use HTTP/2. + --bonjour Broadcasts the server via ZeroConf networking on start. + --no-bonjour Do not broadcast the server via ZeroConf networking on start. + --client-progress Print compilation progress in percentage in the browser. + --no-client-progress Do not print compilation progress in percentage in the browser. + --client-overlay Show a full-screen overlay in the browser when there are compiler errors or warnings. + --no-client-overlay Do not show a full-screen overlay in the browser when there are compiler errors or warnings. + --setup-exit-signals Close and exit the process on SIGINT and SIGTERM. + --no-setup-exit-signals Do not close and exit the process on SIGNIT and SIGTERM. + --open [value...] Open the default browser. + --no-open Do not open the default browser. + --open-app Open specified browser. + --open-target [value...] Open specified route in browser. + --no-open-target Do not open specified route in browser. + --client-logging Log level in the browser (none, error, warn, info, log, verbose). + --history-api-fallback Fallback to /index.html for Single Page Applications. + --no-history-api-fallback Do not fallback to /index.html for Single Page Applications. + --compress Enable gzip compression. + --no-compress Disable gzip compression. + --public The public hostname/ip address of the server. + --firewall [value...] Enable firewall or set hosts that are allowed to access the dev server. + --no-firewall Disable firewall. + --watch-files Watch static files for file changes. + +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'. + --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. + --host The hostname/ip address the server will bind to. + --port The port server will listen to. + --static [value...] A directory to serve static content from. + --no-static Negative 'static' option. + --live-reload Enables live reloading on changing files. + --no-live-reload Disables live reloading on changing files. + --https Use HTTPS protocol. + --no-https Do not use HTTPS protocol. + --http2 Use HTTP/2, must be used with HTTPS. + --no-http2 Do not use HTTP/2. + --bonjour Broadcasts the server via ZeroConf networking on start. + --no-bonjour Do not broadcast the server via ZeroConf networking on start. + --client-progress Print compilation progress in percentage in the browser. + --no-client-progress Do not print compilation progress in percentage in the browser. + --client-overlay Show a full-screen overlay in the browser when there are compiler errors or warnings. + --no-client-overlay Do not show a full-screen overlay in the browser when there are compiler errors or warnings. + --setup-exit-signals Close and exit the process on SIGINT and SIGTERM. + --no-setup-exit-signals Do not close and exit the process on SIGNIT and SIGTERM. + --open [value...] Open the default browser. + --no-open Do not open the default browser. + --open-app Open specified browser. + --open-target [value...] Open specified route in browser. + --no-open-target Do not open specified route in browser. + --client-logging Log level in the browser (none, error, warn, info, log, verbose). + --history-api-fallback Fallback to /index.html for Single Page Applications. + --no-history-api-fallback Do not fallback to /index.html for Single Page Applications. + --compress Enable gzip compression. + --no-compress Disable gzip compression. + --public The public hostname/ip address of the server. + --firewall [value...] Enable firewall or set hosts that are allowed to access the dev server. + --no-firewall Disable firewall. + --watch-files Watch static files for file changes. + +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'. + --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. + --host The hostname/ip address the server will bind to. + --port The port server will listen to. + --static [value...] A directory to serve static content from. + --no-static Negative 'static' option. + --live-reload Enables live reloading on changing files. + --no-live-reload Disables live reloading on changing files. + --https Use HTTPS protocol. + --no-https Do not use HTTPS protocol. + --http2 Use HTTP/2, must be used with HTTPS. + --no-http2 Do not use HTTP/2. + --bonjour Broadcasts the server via ZeroConf networking on start. + --no-bonjour Do not broadcast the server via ZeroConf networking on start. + --client-progress Print compilation progress in percentage in the browser. + --no-client-progress Do not print compilation progress in percentage in the browser. + --client-overlay Show a full-screen overlay in the browser when there are compiler errors or warnings. + --no-client-overlay Do not show a full-screen overlay in the browser when there are compiler errors or warnings. + --setup-exit-signals Close and exit the process on SIGINT and SIGTERM. + --no-setup-exit-signals Do not close and exit the process on SIGNIT and SIGTERM. + --open [value...] Open the default browser. + --no-open Do not open the default browser. + --open-app Open specified browser. + --open-target [value...] Open specified route in browser. + --no-open-target Do not open specified route in browser. + --client-logging Log level in the browser (none, error, warn, info, log, verbose). + --history-api-fallback Fallback to /index.html for Single Page Applications. + --no-history-api-fallback Do not fallback to /index.html for Single Page Applications. + --compress Enable gzip compression. + --no-compress Disable gzip compression. + --public The public hostname/ip address of the server. + --firewall [value...] Enable firewall or set hosts that are allowed to access the dev server. + --no-firewall Disable firewall. + --watch-files Watch static files for file changes. + +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'. + --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'. + --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'. + --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'. + --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'. + --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'. + --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'. + --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. + migrate|m [new-config-path] Migrate a configuration to a new version. + 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'. + --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. + migrate|m [new-config-path] Migrate a configuration to a new version. + 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: stderr 2`] = `""`; + +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 --mode" option: stdout 2`] = ` +"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: + --output To get the output in a specified format ( accept json or markdown ) + +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 sytnax 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'. + --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. + migrate|m [new-config-path] Migrate a configuration to a new version. + 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'. + --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. + migrate|m [new-config-path] Migrate a configuration to a new version. + 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.webpack5 b/test/help/__snapshots__/help.test.js.snap.devServer4.webpack5 new file mode 100644 index 00000000000..33c0a4bc196 --- /dev/null +++ b/test/help/__snapshots__/help.test.js.snap.devServer4.webpack5 @@ -0,0 +1,2789 @@ +// 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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path Output location of the file generated by webpack e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + -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. + migrate|m [new-config-path] Migrate a configuration to a new version. + 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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path Output location of the file generated by webpack e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + -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. + migrate|m [new-config-path] Migrate a configuration to a new version. + 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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path Output location of the file generated by webpack e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + -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. + migrate|m [new-config-path] Migrate a configuration to a new version. + 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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path Output location of the file generated by webpack e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + -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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path Output location of the file generated by webpack e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + -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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. + ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading + multiple configurations. + -o, --output-path Output location of the file generated by webpack + e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats + e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + -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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. + ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading + multiple configurations. + -o, --output-path Output location of the file generated by webpack + e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats + e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + -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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path Output location of the file generated by webpack e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + -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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path Output location of the file generated by webpack e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + -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. + +Options: + --template Type of template (default: \\"default\\") + --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. + +Options: + --template Type of template (default: \\"default\\") + --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. + +Options: + --template Type of template (default: \\"default\\") + --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. + +Options: + --template Type of template (default: \\"default\\") + --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: + --output To get the output in a specified format ( accept json or markdown ) + +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: + --output To get the output in a specified format ( accept json or markdown ) + +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: + --output To get the output in a specified format ( accept json + or markdown ) + +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: + --output To get the output in a specified format ( accept json + or markdown ) + +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: + --output To get the output in a specified format ( accept json or markdown ) + +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: + --output To get the output in a specified format ( accept json or markdown ) + +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. + +Options: + --template Type of template (default: \\"default\\") + --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. + +Options: + --template Type of template (default: \\"default\\") + --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. + +Options: + --template Type of template (default: \\"default\\") + --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. + +Options: + --template Type of template (default: \\"default\\") + --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. + +Options: + --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. + +Options: + --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. + +Options: + --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. + +Options: + --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. + +Options: + --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. + +Options: + --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 'm' command using command syntax: stderr 1`] = `""`; + +exports[`help should show help information for 'm' command using command syntax: stdout 1`] = ` +"Usage: webpack migrate|m [new-config-path] + +Migrate a configuration to a new version. + +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 'm' command using the "--help" option: stderr 1`] = `""`; + +exports[`help should show help information for 'm' command using the "--help" option: stdout 1`] = ` +"Usage: webpack migrate|m [new-config-path] + +Migrate a configuration to a new version. + +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 'migrate' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; + +exports[`help should show help information for 'migrate' and respect the "--color" flag using the "--help" option: stdout 1`] = ` +"Usage: webpack migrate|m [new-config-path] + +Migrate a configuration to a new version. + +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 'migrate' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; + +exports[`help should show help information for 'migrate' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` +"Usage: webpack migrate|m [new-config-path] + +Migrate a configuration to a new version. + +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 'migrate' command using command syntax: stderr 1`] = `""`; + +exports[`help should show help information for 'migrate' command using command syntax: stdout 1`] = ` +"Usage: webpack migrate|m [new-config-path] + +Migrate a configuration to a new version. + +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 'migrate' command using the "--help" option: stderr 1`] = `""`; + +exports[`help should show help information for 'migrate' command using the "--help" option: stdout 1`] = ` +"Usage: webpack migrate|m [new-config-path] + +Migrate a configuration to a new version. + +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. + +Options: + --template Type of template (default: \\"default\\") + --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. + +Options: + --template Type of template (default: \\"default\\") + --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. + +Options: + --template Type of template (default: \\"default\\") + --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. + +Options: + --template Type of template (default: \\"default\\") + --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. + +Options: + --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. + +Options: + --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. + +Options: + --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. + +Options: + --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. + +Options: + --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. + +Options: + --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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path Output location of the file generated by webpack e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + --watch-options-stdin Stop watching when stdin stream has ended. + --no-watch-options-stdin Do not stop watching when stdin stream has ended. + --host The hostname/ip address the server will bind to. + --port The port server will listen to. + --static [value...] A directory to serve static content from. + --no-static Negative 'static' option. + --live-reload Enables live reloading on changing files. + --no-live-reload Disables live reloading on changing files. + --https Use HTTPS protocol. + --no-https Do not use HTTPS protocol. + --http2 Use HTTP/2, must be used with HTTPS. + --no-http2 Do not use HTTP/2. + --bonjour Broadcasts the server via ZeroConf networking on start. + --no-bonjour Do not broadcast the server via ZeroConf networking on start. + --client-progress Print compilation progress in percentage in the browser. + --no-client-progress Do not print compilation progress in percentage in the browser. + --client-overlay Show a full-screen overlay in the browser when there are compiler errors or warnings. + --no-client-overlay Do not show a full-screen overlay in the browser when there are compiler errors or warnings. + --setup-exit-signals Close and exit the process on SIGINT and SIGTERM. + --no-setup-exit-signals Do not close and exit the process on SIGNIT and SIGTERM. + --open [value...] Open the default browser. + --no-open Do not open the default browser. + --open-app Open specified browser. + --open-target [value...] Open specified route in browser. + --no-open-target Do not open specified route in browser. + --client-logging Log level in the browser (none, error, warn, info, log, verbose). + --history-api-fallback Fallback to /index.html for Single Page Applications. + --no-history-api-fallback Do not fallback to /index.html for Single Page Applications. + --compress Enable gzip compression. + --no-compress Disable gzip compression. + --public The public hostname/ip address of the server. + --firewall [value...] Enable firewall or set hosts that are allowed to access the dev server. + --no-firewall Disable firewall. + --watch-files Watch static files for file changes. + +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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path Output location of the file generated by webpack e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + --watch-options-stdin Stop watching when stdin stream has ended. + --no-watch-options-stdin Do not stop watching when stdin stream has ended. + --host The hostname/ip address the server will bind to. + --port The port server will listen to. + --static [value...] A directory to serve static content from. + --no-static Negative 'static' option. + --live-reload Enables live reloading on changing files. + --no-live-reload Disables live reloading on changing files. + --https Use HTTPS protocol. + --no-https Do not use HTTPS protocol. + --http2 Use HTTP/2, must be used with HTTPS. + --no-http2 Do not use HTTP/2. + --bonjour Broadcasts the server via ZeroConf networking on start. + --no-bonjour Do not broadcast the server via ZeroConf networking on start. + --client-progress Print compilation progress in percentage in the browser. + --no-client-progress Do not print compilation progress in percentage in the browser. + --client-overlay Show a full-screen overlay in the browser when there are compiler errors or warnings. + --no-client-overlay Do not show a full-screen overlay in the browser when there are compiler errors or warnings. + --setup-exit-signals Close and exit the process on SIGINT and SIGTERM. + --no-setup-exit-signals Do not close and exit the process on SIGNIT and SIGTERM. + --open [value...] Open the default browser. + --no-open Do not open the default browser. + --open-app Open specified browser. + --open-target [value...] Open specified route in browser. + --no-open-target Do not open specified route in browser. + --client-logging Log level in the browser (none, error, warn, info, log, verbose). + --history-api-fallback Fallback to /index.html for Single Page Applications. + --no-history-api-fallback Do not fallback to /index.html for Single Page Applications. + --compress Enable gzip compression. + --no-compress Disable gzip compression. + --public The public hostname/ip address of the server. + --firewall [value...] Enable firewall or set hosts that are allowed to access the dev server. + --no-firewall Disable firewall. + --watch-files Watch static files for file changes. + +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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. + ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading + multiple configurations. + -o, --output-path Output location of the file generated by webpack + e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats + e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + --watch-options-stdin Stop watching when stdin stream has ended. + --no-watch-options-stdin Do not stop watching when stdin stream has ended. + --host The hostname/ip address the server will bind to. + --port The port server will listen to. + --static [value...] A directory to serve static content from. + --no-static Negative 'static' option. + --live-reload Enables live reloading on changing files. + --no-live-reload Disables live reloading on changing files. + --https Use HTTPS protocol. + --no-https Do not use HTTPS protocol. + --http2 Use HTTP/2, must be used with HTTPS. + --no-http2 Do not use HTTP/2. + --bonjour Broadcasts the server via ZeroConf networking on + start. + --no-bonjour Do not broadcast the server via ZeroConf + networking on start. + --client-progress Print compilation progress in percentage in the + browser. + --no-client-progress Do not print compilation progress in percentage in + the browser. + --client-overlay Show a full-screen overlay in the browser when + there are compiler errors or warnings. + --no-client-overlay Do not show a full-screen overlay in the browser + when there are compiler errors or warnings. + --setup-exit-signals Close and exit the process on SIGINT and SIGTERM. + --no-setup-exit-signals Do not close and exit the process on SIGNIT and + SIGTERM. + --open [value...] Open the default browser. + --no-open Do not open the default browser. + --open-app Open specified browser. + --open-target [value...] Open specified route in browser. + --no-open-target Do not open specified route in browser. + --client-logging Log level in the browser (none, error, warn, info, + log, verbose). + --history-api-fallback Fallback to /index.html for Single Page + Applications. + --no-history-api-fallback Do not fallback to /index.html for Single Page + Applications. + --compress Enable gzip compression. + --no-compress Disable gzip compression. + --public The public hostname/ip address of the server. + --firewall [value...] Enable firewall or set hosts that are allowed to + access the dev server. + --no-firewall Disable firewall. + --watch-files Watch static files for file changes. + +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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. + ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading + multiple configurations. + -o, --output-path Output location of the file generated by webpack + e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats + e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + --watch-options-stdin Stop watching when stdin stream has ended. + --no-watch-options-stdin Do not stop watching when stdin stream has ended. + --host The hostname/ip address the server will bind to. + --port The port server will listen to. + --static [value...] A directory to serve static content from. + --no-static Negative 'static' option. + --live-reload Enables live reloading on changing files. + --no-live-reload Disables live reloading on changing files. + --https Use HTTPS protocol. + --no-https Do not use HTTPS protocol. + --http2 Use HTTP/2, must be used with HTTPS. + --no-http2 Do not use HTTP/2. + --bonjour Broadcasts the server via ZeroConf networking on + start. + --no-bonjour Do not broadcast the server via ZeroConf + networking on start. + --client-progress Print compilation progress in percentage in the + browser. + --no-client-progress Do not print compilation progress in percentage in + the browser. + --client-overlay Show a full-screen overlay in the browser when + there are compiler errors or warnings. + --no-client-overlay Do not show a full-screen overlay in the browser + when there are compiler errors or warnings. + --setup-exit-signals Close and exit the process on SIGINT and SIGTERM. + --no-setup-exit-signals Do not close and exit the process on SIGNIT and + SIGTERM. + --open [value...] Open the default browser. + --no-open Do not open the default browser. + --open-app Open specified browser. + --open-target [value...] Open specified route in browser. + --no-open-target Do not open specified route in browser. + --client-logging Log level in the browser (none, error, warn, info, + log, verbose). + --history-api-fallback Fallback to /index.html for Single Page + Applications. + --no-history-api-fallback Do not fallback to /index.html for Single Page + Applications. + --compress Enable gzip compression. + --no-compress Disable gzip compression. + --public The public hostname/ip address of the server. + --firewall [value...] Enable firewall or set hosts that are allowed to + access the dev server. + --no-firewall Disable firewall. + --watch-files Watch static files for file changes. + +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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path Output location of the file generated by webpack e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + --watch-options-stdin Stop watching when stdin stream has ended. + --no-watch-options-stdin Do not stop watching when stdin stream has ended. + --host The hostname/ip address the server will bind to. + --port The port server will listen to. + --static [value...] A directory to serve static content from. + --no-static Negative 'static' option. + --live-reload Enables live reloading on changing files. + --no-live-reload Disables live reloading on changing files. + --https Use HTTPS protocol. + --no-https Do not use HTTPS protocol. + --http2 Use HTTP/2, must be used with HTTPS. + --no-http2 Do not use HTTP/2. + --bonjour Broadcasts the server via ZeroConf networking on start. + --no-bonjour Do not broadcast the server via ZeroConf networking on start. + --client-progress Print compilation progress in percentage in the browser. + --no-client-progress Do not print compilation progress in percentage in the browser. + --client-overlay Show a full-screen overlay in the browser when there are compiler errors or warnings. + --no-client-overlay Do not show a full-screen overlay in the browser when there are compiler errors or warnings. + --setup-exit-signals Close and exit the process on SIGINT and SIGTERM. + --no-setup-exit-signals Do not close and exit the process on SIGNIT and SIGTERM. + --open [value...] Open the default browser. + --no-open Do not open the default browser. + --open-app Open specified browser. + --open-target [value...] Open specified route in browser. + --no-open-target Do not open specified route in browser. + --client-logging Log level in the browser (none, error, warn, info, log, verbose). + --history-api-fallback Fallback to /index.html for Single Page Applications. + --no-history-api-fallback Do not fallback to /index.html for Single Page Applications. + --compress Enable gzip compression. + --no-compress Disable gzip compression. + --public The public hostname/ip address of the server. + --firewall [value...] Enable firewall or set hosts that are allowed to access the dev server. + --no-firewall Disable firewall. + --watch-files Watch static files for file changes. + +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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path Output location of the file generated by webpack e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + --watch-options-stdin Stop watching when stdin stream has ended. + --no-watch-options-stdin Do not stop watching when stdin stream has ended. + --host The hostname/ip address the server will bind to. + --port The port server will listen to. + --static [value...] A directory to serve static content from. + --no-static Negative 'static' option. + --live-reload Enables live reloading on changing files. + --no-live-reload Disables live reloading on changing files. + --https Use HTTPS protocol. + --no-https Do not use HTTPS protocol. + --http2 Use HTTP/2, must be used with HTTPS. + --no-http2 Do not use HTTP/2. + --bonjour Broadcasts the server via ZeroConf networking on start. + --no-bonjour Do not broadcast the server via ZeroConf networking on start. + --client-progress Print compilation progress in percentage in the browser. + --no-client-progress Do not print compilation progress in percentage in the browser. + --client-overlay Show a full-screen overlay in the browser when there are compiler errors or warnings. + --no-client-overlay Do not show a full-screen overlay in the browser when there are compiler errors or warnings. + --setup-exit-signals Close and exit the process on SIGINT and SIGTERM. + --no-setup-exit-signals Do not close and exit the process on SIGNIT and SIGTERM. + --open [value...] Open the default browser. + --no-open Do not open the default browser. + --open-app Open specified browser. + --open-target [value...] Open specified route in browser. + --no-open-target Do not open specified route in browser. + --client-logging Log level in the browser (none, error, warn, info, log, verbose). + --history-api-fallback Fallback to /index.html for Single Page Applications. + --no-history-api-fallback Do not fallback to /index.html for Single Page Applications. + --compress Enable gzip compression. + --no-compress Disable gzip compression. + --public The public hostname/ip address of the server. + --firewall [value...] Enable firewall or set hosts that are allowed to access the dev server. + --no-firewall Disable firewall. + --watch-files Watch static files for file changes. + +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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path Output location of the file generated by webpack e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + --watch-options-stdin Stop watching when stdin stream has ended. + --no-watch-options-stdin Do not stop watching when stdin stream has ended. + --host The hostname/ip address the server will bind to. + --port The port server will listen to. + --static [value...] A directory to serve static content from. + --no-static Negative 'static' option. + --live-reload Enables live reloading on changing files. + --no-live-reload Disables live reloading on changing files. + --https Use HTTPS protocol. + --no-https Do not use HTTPS protocol. + --http2 Use HTTP/2, must be used with HTTPS. + --no-http2 Do not use HTTP/2. + --bonjour Broadcasts the server via ZeroConf networking on start. + --no-bonjour Do not broadcast the server via ZeroConf networking on start. + --client-progress Print compilation progress in percentage in the browser. + --no-client-progress Do not print compilation progress in percentage in the browser. + --client-overlay Show a full-screen overlay in the browser when there are compiler errors or warnings. + --no-client-overlay Do not show a full-screen overlay in the browser when there are compiler errors or warnings. + --setup-exit-signals Close and exit the process on SIGINT and SIGTERM. + --no-setup-exit-signals Do not close and exit the process on SIGNIT and SIGTERM. + --open [value...] Open the default browser. + --no-open Do not open the default browser. + --open-app Open specified browser. + --open-target [value...] Open specified route in browser. + --no-open-target Do not open specified route in browser. + --client-logging Log level in the browser (none, error, warn, info, log, verbose). + --history-api-fallback Fallback to /index.html for Single Page Applications. + --no-history-api-fallback Do not fallback to /index.html for Single Page Applications. + --compress Enable gzip compression. + --no-compress Disable gzip compression. + --public The public hostname/ip address of the server. + --firewall [value...] Enable firewall or set hosts that are allowed to access the dev server. + --no-firewall Disable firewall. + --watch-files Watch static files for file changes. + +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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path Output location of the file generated by webpack e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + --watch-options-stdin Stop watching when stdin stream has ended. + --no-watch-options-stdin Do not stop watching when stdin stream has ended. + --host The hostname/ip address the server will bind to. + --port The port server will listen to. + --static [value...] A directory to serve static content from. + --no-static Negative 'static' option. + --live-reload Enables live reloading on changing files. + --no-live-reload Disables live reloading on changing files. + --https Use HTTPS protocol. + --no-https Do not use HTTPS protocol. + --http2 Use HTTP/2, must be used with HTTPS. + --no-http2 Do not use HTTP/2. + --bonjour Broadcasts the server via ZeroConf networking on start. + --no-bonjour Do not broadcast the server via ZeroConf networking on start. + --client-progress Print compilation progress in percentage in the browser. + --no-client-progress Do not print compilation progress in percentage in the browser. + --client-overlay Show a full-screen overlay in the browser when there are compiler errors or warnings. + --no-client-overlay Do not show a full-screen overlay in the browser when there are compiler errors or warnings. + --setup-exit-signals Close and exit the process on SIGINT and SIGTERM. + --no-setup-exit-signals Do not close and exit the process on SIGNIT and SIGTERM. + --open [value...] Open the default browser. + --no-open Do not open the default browser. + --open-app Open specified browser. + --open-target [value...] Open specified route in browser. + --no-open-target Do not open specified route in browser. + --client-logging Log level in the browser (none, error, warn, info, log, verbose). + --history-api-fallback Fallback to /index.html for Single Page Applications. + --no-history-api-fallback Do not fallback to /index.html for Single Page Applications. + --compress Enable gzip compression. + --no-compress Disable gzip compression. + --public The public hostname/ip address of the server. + --firewall [value...] Enable firewall or set hosts that are allowed to access the dev server. + --no-firewall Disable firewall. + --watch-files Watch static files for file changes. + +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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path Output location of the file generated by webpack e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + --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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path Output location of the file generated by webpack e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + --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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. + ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading + multiple configurations. + -o, --output-path Output location of the file generated by webpack + e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats + e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + --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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. + ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading + multiple configurations. + -o, --output-path Output location of the file generated by webpack + e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats + e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + --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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path Output location of the file generated by webpack e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + --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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path Output location of the file generated by webpack e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + --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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path Output location of the file generated by webpack e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + -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. + migrate|m [new-config-path] Migrate a configuration to a new version. + 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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path Output location of the file generated by webpack e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + -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. + migrate|m [new-config-path] Migrate a configuration to a new version. + 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: stderr 2`] = `""`; + +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 --mode" option: stdout 2`] = ` +"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: + --output To get the output in a specified format ( accept json or markdown ) + +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 sytnax 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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path Output location of the file generated by webpack e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + -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. + migrate|m [new-config-path] Migrate a configuration to a new version. + 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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path Output location of the file generated by webpack e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + -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. + migrate|m [new-config-path] Migrate a configuration to a new version. + 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/help.test.js b/test/help/help.test.js index 4e9eb51d3b8..61add1d701e 100644 --- a/test/help/help.test.js +++ b/test/help/help.test.js @@ -1,4 +1,5 @@ 'use strict'; + const { run, normalizeStderr, normalizeStdout } = require('../utils/test-utils'); describe('help', () => { 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 index 3a840f9fb1d..e34efbf1bf6 100644 --- a/test/serve/basic/__snapshots__/serve-basic.test.js.snap.devServer3.webpack4 +++ b/test/serve/basic/__snapshots__/serve-basic.test.js.snap.devServer3.webpack4 @@ -5,16 +5,22 @@ exports[`basic serve usage should log an error on unknown flag: stderr 1`] = ` [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' @@ -30,11 +36,83 @@ exports[`basic serve usage should respect the "publicPath" option from configura exports[`basic serve usage should respect the "publicPath" option from configuration: stderr 1`] = `""`; +exports[`basic serve usage should shoe help information for serve: stderr 1`] = `""`; + +exports[`basic serve usage should shoe help information for serve: 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'. + --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[`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`] = `""`; @@ -70,6 +148,8 @@ exports[`basic serve usage should work with the "--output-public-path" option: s [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`] = `""`; 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 index 414f1462acb..43d3cfed3a2 100644 --- a/test/serve/basic/__snapshots__/serve-basic.test.js.snap.devServer3.webpack5 +++ b/test/serve/basic/__snapshots__/serve-basic.test.js.snap.devServer3.webpack5 @@ -5,16 +5,22 @@ exports[`basic serve usage should log an error on unknown flag: stderr 1`] = ` [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' @@ -30,11 +36,84 @@ exports[`basic serve usage should respect the "publicPath" option from configura exports[`basic serve usage should respect the "publicPath" option from configuration: stderr 1`] = `""`; +exports[`basic serve usage should shoe help information for serve: stderr 1`] = `""`; + +exports[`basic serve usage should shoe help information for serve: 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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path Output location of the file generated by webpack e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + --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[`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`] = `""`; 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 new file mode 100644 index 00000000000..db2302b2200 --- /dev/null +++ b/test/serve/basic/__snapshots__/serve-basic.test.js.snap.devServer4.webpack4 @@ -0,0 +1,322 @@ +// 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-cli] Compiler is watching files for updates... + [webpack-dev-middleware] Compilation finished" +`; + +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 shoe help information for serve: stderr 1`] = `""`; + +exports[`basic serve usage should shoe help information for serve: 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'. + --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. + --host The hostname/ip address the server will bind to. + --port The port server will listen to. + --static [value...] A directory to serve static content from. + --no-static Negative 'static' option. + --live-reload Enables live reloading on changing files. + --no-live-reload Disables live reloading on changing files. + --https Use HTTPS protocol. + --no-https Do not use HTTPS protocol. + --http2 Use HTTP/2, must be used with HTTPS. + --no-http2 Do not use HTTP/2. + --bonjour Broadcasts the server via ZeroConf networking on start. + --no-bonjour Do not broadcast the server via ZeroConf networking on start. + --client-progress Print compilation progress in percentage in the browser. + --no-client-progress Do not print compilation progress in percentage in the browser. + --client-overlay Show a full-screen overlay in the browser when there are compiler errors or warnings. + --no-client-overlay Do not show a full-screen overlay in the browser when there are compiler errors or warnings. + --setup-exit-signals Close and exit the process on SIGINT and SIGTERM. + --no-setup-exit-signals Do not close and exit the process on SIGNIT and SIGTERM. + --open [value...] Open the default browser. + --no-open Do not open the default browser. + --open-app Open specified browser. + --open-target [value...] Open specified route in browser. + --no-open-target Do not open specified route in browser. + --client-logging Log level in the browser (none, error, warn, info, log, verbose). + --history-api-fallback Fallback to /index.html for Single Page Applications. + --no-history-api-fallback Do not fallback to /index.html for Single Page Applications. + --compress Enable gzip compression. + --no-compress Disable gzip compression. + --public The public hostname/ip address of the server. + --firewall [value...] Enable firewall or set hosts that are allowed to access the dev server. + --no-firewall Disable firewall. + --watch-files Watch static files for file changes. + +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[`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. + [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/basic/__snapshots__/serve-basic.test.js.snap.devServer4.webpack5 b/test/serve/basic/__snapshots__/serve-basic.test.js.snap.devServer4.webpack5 new file mode 100644 index 00000000000..dad84972c3d --- /dev/null +++ b/test/serve/basic/__snapshots__/serve-basic.test.js.snap.devServer4.webpack5 @@ -0,0 +1,324 @@ +// 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-cli] Compiler is watching files for updates... + [webpack-dev-middleware] Compilation finished" +`; + +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 shoe help information for serve: stderr 1`] = `""`; + +exports[`basic serve usage should shoe help information for serve: 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'. + --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 Determine source maps to use. + --no-devtool Do not generate source maps. + --entry The entry point(s) of your application e.g. ./src/main.js. + --mode Defines the mode to pass to webpack. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path Output location of the file generated by webpack e.g. ./dist/. + --stats [value] It instructs webpack on how to treat the stats e.g. verbose. + --no-stats Disable stats output. + -t, --target Sets the build target e.g. node. + --no-target Negative 'target' option. + --watch-options-stdin Stop watching when stdin stream has ended. + --no-watch-options-stdin Do not stop watching when stdin stream has ended. + --host The hostname/ip address the server will bind to. + --port The port server will listen to. + --static [value...] A directory to serve static content from. + --no-static Negative 'static' option. + --live-reload Enables live reloading on changing files. + --no-live-reload Disables live reloading on changing files. + --https Use HTTPS protocol. + --no-https Do not use HTTPS protocol. + --http2 Use HTTP/2, must be used with HTTPS. + --no-http2 Do not use HTTP/2. + --bonjour Broadcasts the server via ZeroConf networking on start. + --no-bonjour Do not broadcast the server via ZeroConf networking on start. + --client-progress Print compilation progress in percentage in the browser. + --no-client-progress Do not print compilation progress in percentage in the browser. + --client-overlay Show a full-screen overlay in the browser when there are compiler errors or warnings. + --no-client-overlay Do not show a full-screen overlay in the browser when there are compiler errors or warnings. + --setup-exit-signals Close and exit the process on SIGINT and SIGTERM. + --no-setup-exit-signals Do not close and exit the process on SIGNIT and SIGTERM. + --open [value...] Open the default browser. + --no-open Do not open the default browser. + --open-app Open specified browser. + --open-target [value...] Open specified route in browser. + --no-open-target Do not open specified route in browser. + --client-logging Log level in the browser (none, error, warn, info, log, verbose). + --history-api-fallback Fallback to /index.html for Single Page Applications. + --no-history-api-fallback Do not fallback to /index.html for Single Page Applications. + --compress Enable gzip compression. + --no-compress Disable gzip compression. + --public The public hostname/ip address of the server. + --firewall [value...] Enable firewall or set hosts that are allowed to access the dev server. + --no-firewall Disable firewall. + --watch-files Watch static files for file changes. + +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[`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. + [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-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 "--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/basic/dev-server-output-public-path.config.js b/test/serve/basic/dev-server-output-public-path.config.js index e84e9137dd6..d6d09b622ac 100644 --- a/test/serve/basic/dev-server-output-public-path.config.js +++ b/test/serve/basic/dev-server-output-public-path.config.js @@ -1,4 +1,5 @@ const WebpackCLITestPlugin = require('../../utils/webpack-cli-test-plugin'); +const { devServerConfig } = require('./helper/base-dev-server.config'); module.exports = { mode: 'development', @@ -6,8 +7,6 @@ module.exports = { output: { publicPath: '/my-public-path/', }, - devServer: { - publicPath: '/dev-server-my-public-path/', - }, + devServer: devServerConfig, plugins: [new WebpackCLITestPlugin(['mode', 'output'], false, 'hooks.compilation.taps')], }; diff --git a/test/serve/basic/helper/base-dev-server.config.js b/test/serve/basic/helper/base-dev-server.config.js new file mode 100644 index 00000000000..6dbb7901b8a --- /dev/null +++ b/test/serve/basic/helper/base-dev-server.config.js @@ -0,0 +1,17 @@ +const { isDevServer4 } = require('../../../utils/test-utils'); + +let devServerConfig = {}; + +if (isDevServer4) { + devServerConfig = { + dev: { + publicPath: '/dev-server-my-public-path/', + }, + }; +} else { + devServerConfig = { + publicPath: '/dev-server-my-public-path/', + }; +} + +module.exports = devServerConfig; diff --git a/test/serve/basic/multi-dev-server-output-public-path.config.js b/test/serve/basic/multi-dev-server-output-public-path.config.js index 56409276d4e..2500c708719 100644 --- a/test/serve/basic/multi-dev-server-output-public-path.config.js +++ b/test/serve/basic/multi-dev-server-output-public-path.config.js @@ -1,4 +1,5 @@ const WebpackCLITestPlugin = require('../../utils/webpack-cli-test-plugin'); +const { devServerConfig } = require('./helper/base-dev-server.config'); module.exports = [ { @@ -14,13 +15,12 @@ module.exports = [ name: 'two', mode: 'development', devtool: false, + stats: 'detailed', output: { publicPath: '/my-public-path/', filename: 'second-output/[name].js', }, - devServer: { - publicPath: '/dev-server-my-public-path/', - }, + devServer: devServerConfig, plugins: [new WebpackCLITestPlugin(['mode', 'output'], false, 'hooks.compilation.taps')], }, ]; diff --git a/test/serve/basic/multi-dev-server.config.js b/test/serve/basic/multi-dev-server.config.js index 09654325db8..211aaef13e5 100644 --- a/test/serve/basic/multi-dev-server.config.js +++ b/test/serve/basic/multi-dev-server.config.js @@ -2,6 +2,7 @@ const getPort = require('get-port'); const WebpackCLITestPlugin = require('../../utils/webpack-cli-test-plugin'); +const { devServerConfig } = require('./helper/base-dev-server.config'); module.exports = async () => [ { @@ -12,8 +13,8 @@ module.exports = async () => [ filename: 'first-output/[name].js', }, devServer: { + ...devServerConfig, port: await getPort(), - publicPath: '/one-dev-server-my-public-path/', }, plugins: [new WebpackCLITestPlugin(['mode', 'output'], false, 'hooks.compilation.taps')], }, @@ -26,8 +27,8 @@ module.exports = async () => [ filename: 'second-output/[name].js', }, devServer: { + ...devServerConfig, port: await getPort(), - publicPath: '/two-dev-server-my-public-path/', }, }, ]; diff --git a/test/serve/basic/multi.config.js b/test/serve/basic/multi.config.js index e344db6c72b..e8134f9b209 100644 --- a/test/serve/basic/multi.config.js +++ b/test/serve/basic/multi.config.js @@ -1,4 +1,5 @@ const WebpackCLITestPlugin = require('../../utils/webpack-cli-test-plugin'); +const { devServerConfig } = require('./helper/base-dev-server.config'); module.exports = [ { @@ -8,9 +9,7 @@ module.exports = [ output: { filename: 'first-output/[name].js', }, - devServer: { - publicPath: '/dev-server-my-public-path/', - }, + devServer: devServerConfig, plugins: [new WebpackCLITestPlugin(['mode', 'output'], false, 'hooks.compilation.taps')], }, { diff --git a/test/serve/basic/multiple-dev-server.config.js b/test/serve/basic/multiple-dev-server.config.js index 154a03b2012..8c72527829a 100644 --- a/test/serve/basic/multiple-dev-server.config.js +++ b/test/serve/basic/multiple-dev-server.config.js @@ -1,4 +1,5 @@ const WebpackCLITestPlugin = require('../../utils/webpack-cli-test-plugin'); +const { devServerConfig } = require('./helper/base-dev-server.config'); module.exports = [ { @@ -8,9 +9,7 @@ module.exports = [ output: { filename: 'first-output/[name].js', }, - devServer: { - publicPath: '/dev-server-my-public-path/', - }, + devServer: devServerConfig, plugins: [new WebpackCLITestPlugin(['mode', 'output'], false)], }, { @@ -21,9 +20,7 @@ module.exports = [ output: { filename: 'first-output/[name].js', }, - devServer: { - publicPath: '/dev-server-my-public-path/', - }, + devServer: devServerConfig, plugins: [new WebpackCLITestPlugin(['mode', 'output'], false)], }, ]; diff --git a/test/serve/basic/serve-basic.test.js b/test/serve/basic/serve-basic.test.js index 0b580d20d00..8d296a2aced 100644 --- a/test/serve/basic/serve-basic.test.js +++ b/test/serve/basic/serve-basic.test.js @@ -3,7 +3,7 @@ const path = require('path'); // eslint-disable-next-line node/no-unpublished-require const getPort = require('get-port'); -const { runWatch, isWebpack5, isDevServer4, normalizeStderr } = require('../../utils/test-utils'); +const { runWatch, isWebpack5, normalizeStderr, normalizeStdout, isDevServer4 } = require('../../utils/test-utils'); const testPath = path.resolve(__dirname); @@ -18,16 +18,28 @@ describe('basic serve usage', () => { const { stderr, stdout } = await runWatch(__dirname, ['serve']); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); + + if (isDevServer4) { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } else { + expect(stdout).not.toContain('HotModuleReplacementPlugin'); + } + expect(stdout).toContain('main.js'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toBeNull(); }); it('should work with the "--config" option', async () => { const { stderr, stdout } = await runWatch(__dirname, ['serve', '--config', 'serve.config.js', '--port', port]); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); - expect(stdout).toContain('development'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toBeNull(); + + if (isDevServer4) { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } else { + expect(stdout).not.toContain('HotModuleReplacementPlugin'); + } + + expect(stdout).toContain('main.js'); }); it('should work with the "--config" and "--env" options', async () => { @@ -42,10 +54,16 @@ describe('basic serve usage', () => { ]); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); + + if (isDevServer4) { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } else { + expect(stdout).not.toContain('HotModuleReplacementPlugin'); + } + expect(stdout).toContain('WEBPACK_SERVE: true'); expect(stdout).toContain("foo: 'bar'"); expect(stdout).toContain('development'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toBeNull(); }); it('should work with the "--config" and "--env" options and expose dev server options', async () => { @@ -61,22 +79,34 @@ describe('basic serve usage', () => { ]); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); + + if (isDevServer4) { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } else { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } + expect(stdout).toContain('hot: true'); expect(stdout).toContain('WEBPACK_SERVE: true'); expect(stdout).toContain("foo: 'bar'"); expect(stdout).toContain('development'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toHaveLength(1); }); it('should work in multi compiler mode', async () => { const { stderr, stdout } = await runWatch(__dirname, ['serve', '--config', 'multi.config.js', '--port', port]); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); + + if (isDevServer4) { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } else { + expect(stdout).not.toContain('HotModuleReplacementPlugin'); + } + expect(stdout).toContain('one'); expect(stdout).toContain('first-output/main.js'); expect(stdout).toContain('two'); expect(stdout).toContain('second-output/main.js'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toBeNull(); }); // TODO need fix in future, edge case @@ -84,148 +114,226 @@ describe('basic serve usage', () => { const { stderr, stdout } = await runWatch(__dirname, ['serve', '--config', 'multi-dev-server.config.js']); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); + + if (isDevServer4) { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } else { + expect(stdout).not.toContain('HotModuleReplacementPlugin'); + } + expect(stdout).toContain('one'); expect(stdout).toContain('first-output/main.js'); expect(stdout).toContain('two'); expect(stdout).toContain('second-output/main.js'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toBeNull(); }); it('should work with the "--mode" option', async () => { const { stderr, stdout } = await runWatch(__dirname, ['serve']); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); + + if (isDevServer4) { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } else { + expect(stdout).not.toContain('HotModuleReplacementPlugin'); + } + expect(stdout).toContain('development'); expect(stdout).toContain('main.js'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toBeNull(); }); it('should work with the "--stats" option', async () => { const { stderr, stdout } = await runWatch(__dirname, ['serve', '--stats']); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); + + if (isDevServer4) { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } else { + expect(stdout).not.toContain('HotModuleReplacementPlugin'); + } + expect(stdout).toContain(isWebpack5 ? 'compiled successfully' : 'Version: webpack'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toBeNull(); }); it('should work with the "--stats verbose" option', async () => { const { stderr, stdout } = await runWatch(__dirname, ['serve', '--stats', 'verbose']); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); + + if (isDevServer4) { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } else { + expect(stdout).not.toContain('HotModuleReplacementPlugin'); + } + expect(stdout).toContain(isWebpack5 ? 'from webpack.Compiler' : 'webpack.buildChunkGraph.visitModules'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toBeNull(); + expect(stdout).toContain('main.js'); }); it('should work with the "--mode" option #2', async () => { const { stderr, stdout } = await runWatch(__dirname, ['serve', '--mode', 'production']); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); + + if (isDevServer4) { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } else { + expect(stdout).not.toContain('HotModuleReplacementPlugin'); + } + expect(stdout).toContain('production'); expect(stdout).toContain('main.js'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toBeNull(); }); it('should work with the "--mode" option #3', async () => { const { stderr, stdout } = await runWatch(__dirname, ['serve', '--mode', 'development']); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); + + if (isDevServer4) { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } else { + expect(stdout).not.toContain('HotModuleReplacementPlugin'); + } + expect(stdout).toContain('development'); expect(stdout).toContain('main.js'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toBeNull(); }); it('should work with the "--progress" option', async () => { const { stderr, stdout } = await runWatch(__dirname, ['serve', '--progress']); expect(stderr).toContain('webpack.Progress'); + + if (isDevServer4) { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } else { + expect(stdout).not.toContain('HotModuleReplacementPlugin'); + } + expect(stdout).toContain('main.js'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toBeNull(); }); it('should work with the "--progress" option using the "profile" value', async () => { const { stderr, stdout } = await runWatch(__dirname, ['serve', '--progress', 'profile']); expect(stderr).toContain('webpack.Progress'); + + if (isDevServer4) { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } else { + expect(stdout).not.toContain('HotModuleReplacementPlugin'); + } + expect(stdout).toContain('main.js'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toBeNull(); }); it('should work with the "--client-log-level" option', async () => { - const { stdout, stderr } = await runWatch(testPath, ['serve', '--client-log-level', 'info']); + const { stdout, stderr } = await runWatch(testPath, ['serve', isDevServer4 ? '--client-logging' : '--client-log-level', 'info']); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); + + if (isDevServer4) { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } else { + expect(stdout).not.toContain('HotModuleReplacementPlugin'); + } + expect(stdout).toContain('main.js'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toBeNull(); }); it('should work with the "--port" option', async () => { const { stdout, stderr } = await runWatch(testPath, ['serve', '--port', port]); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); + + if (isDevServer4) { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } else { + expect(stdout).not.toContain('HotModuleReplacementPlugin'); + } + expect(stdout).toContain('main.js'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toBeNull(); }); it('should work with the "--hot" option', async () => { const { stderr, stdout } = await runWatch(__dirname, ['serve', '--hot']); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); + + if (isDevServer4) { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } else { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } + expect(stdout).toContain('main.js'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toHaveLength(1); }); it('should work with the "--no-hot" option', async () => { const { stdout, stderr } = await runWatch(testPath, ['serve', '--port', port, '--no-hot']); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); + expect(stdout).not.toContain('HotModuleReplacementPlugin'); expect(stdout).toContain('main.js'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toBeNull(); }); it('should work with the "--hot" option using the "only" value', async () => { - const { stdout, stderr } = await runWatch(testPath, ['serve', '--port', port, isDevServer4 ? '--hot only' : '--hot-only']); + const { stdout, stderr } = await runWatch(testPath, ['serve', '--port', port, isDevServer4 ? '--hot=only' : '--hot-only']); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); + expect(stdout).toContain('HotModuleReplacementPlugin'); expect(stdout).toContain('main.js'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toHaveLength(1); }); it('should work with "--hot" and "--port" options', async () => { const { stdout, stderr } = await runWatch(testPath, ['serve', '--port', port, '--hot']); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); + expect(stdout).toContain('HotModuleReplacementPlugin'); expect(stdout).toContain('main.js'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toHaveLength(1); }); it('should work with the "--hot" and "--progress" options', async () => { const { stdout, stderr } = await runWatch(testPath, ['serve', '--port', port, '--hot', '--progress']); expect(stderr).toContain('webpack.Progress'); + expect(stdout).toContain('HotModuleReplacementPlugin'); expect(stdout).toContain('main.js'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toHaveLength(1); }); it('should work with the default "publicPath" option', async () => { const { stderr, stdout } = await runWatch(__dirname, ['serve']); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); + + if (isDevServer4) { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } else { + expect(stdout).not.toContain('HotModuleReplacementPlugin'); + } + expect(stdout).toContain('main.js'); - expect(stdout).toContain('from /'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toBeNull(); }); + // TODO bug on webpack-dev-server side, need respect `output.publicPath` too it('should work with the "--output-public-path" option', async () => { const { stderr, stdout } = await runWatch(__dirname, ['serve', '--output-public-path', '/my-public-path/']); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); if (isWebpack5) { + if (isDevServer4) { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } else { + expect(stdout).toContain('/my-public-path/'); + expect(stdout).not.toContain('HotModuleReplacementPlugin'); + } + expect(stdout).toContain('main.js'); - expect(stdout).toContain('/my-public-path/'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toBeNull(); } else { - expect(stdout).toBeFalsy(); + expect(normalizeStdout(stdout)).toMatchSnapshot('stdout'); } }); @@ -233,38 +341,75 @@ describe('basic serve usage', () => { const { stderr, stdout } = await runWatch(__dirname, ['serve', '--config', 'output-public-path.config.js']); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); + + if (isDevServer4) { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } else { + expect(stdout).not.toContain('HotModuleReplacementPlugin'); + } + expect(stdout).toContain('main.js'); expect(stdout).toContain('/my-public-path/'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toBeNull(); }); it('should respect the "publicPath" option from configuration using multi compiler mode', async () => { const { stderr, stdout } = await runWatch(__dirname, ['serve', '--config', 'multi-output-public-path.config.js', '--port', port]); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); + + if (isDevServer4) { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } else { + expect(stdout).not.toContain('HotModuleReplacementPlugin'); + } + expect(stdout).toContain('one'); expect(stdout).toContain('first-output/main.js'); expect(stdout).toContain('two'); expect(stdout).toContain('second-output/main.js'); expect(stdout).toContain('/my-public-path/'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toBeNull(); }); it('should respect the "publicPath" option from configuration (from the "devServer" options)', async () => { const { stderr, stdout } = await runWatch(__dirname, ['serve', '--config', 'dev-server-output-public-path.config.js']); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); + + if (isDevServer4) { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } else { + expect(stdout).not.toContain('HotModuleReplacementPlugin'); + } + expect(stdout).toContain('main.js'); - expect(stdout).toContain('/dev-server-my-public-path/'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toBeNull(); }); it('should work with the "--open" option', async () => { const { stdout, stderr } = await runWatch(testPath, ['serve', '--open', '--port', port]); - expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); + if (isDevServer4) { + let normalizedStderr = normalizeStderr(stderr); + + if (/wait until bundle finished/.test(normalizedStderr)) { + normalizedStderr = normalizedStderr.split('\n'); + + const waitIndex = normalizedStderr.findIndex((item) => /wait until bundle finished/.test(item)); + + if (waitIndex !== -1) { + normalizedStderr.splice(waitIndex, 1); + } + + normalizedStderr = normalizedStderr.join('\n'); + } + + expect(normalizedStderr).toMatchSnapshot('stderr'); + expect(stdout).toContain('HotModuleReplacementPlugin'); + } else { + expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); + expect(stdout).not.toContain('HotModuleReplacementPlugin'); + } + expect(stdout).toContain('main.js'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toBeNull(); }); it('should respect the "publicPath" option from configuration using multi compiler mode (from the "devServer" options)', async () => { @@ -277,28 +422,53 @@ describe('basic serve usage', () => { ]); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); + + if (isDevServer4) { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } else { + expect(stdout).not.toContain('HotModuleReplacementPlugin'); + } + expect(stdout).toContain('one'); expect(stdout).toContain('first-output/main.js'); expect(stdout).toContain('two'); expect(stdout).toContain('second-output/main.js'); - expect(stdout).toContain('/dev-server-my-public-path/'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toBeNull(); }); it('should work with entries syntax', async () => { const { stderr, stdout } = await runWatch(__dirname, ['serve', './src/entry.js', '--port', port]); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); + + if (isDevServer4) { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } else { + expect(stdout).not.toContain('HotModuleReplacementPlugin'); + } + expect(stdout).toContain('development'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toBeNull(); }); it('should work and log warning on the `watch option in a configuration', async () => { const { stderr, stdout } = await runWatch(__dirname, ['serve', '--config', './watch.config.js', '--port', port]); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); + + if (isDevServer4) { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } else { + expect(stdout).not.toContain('HotModuleReplacementPlugin'); + } + expect(stdout).toContain('development'); - expect(stdout.match(/HotModuleReplacementPlugin/g)).toBeNull(); + }); + + it('should shoe help information for serve', async () => { + const { exitCode, stderr, stdout } = await runWatch(__dirname, ['serve', '--help']); + + expect(exitCode).toBe(0); + expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); + expect(normalizeStdout(stdout)).toMatchSnapshot('stdout'); }); it('should log used supplied config with serve', async () => { @@ -315,7 +485,7 @@ describe('basic serve usage', () => { expect(exitCode).toBe(2); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); - expect(stdout).toBeFalsy(); + expect(normalizeStdout(stdout)).toMatchSnapshot('stdout'); }); it("should log error on using '-w' alias with serve", async () => { @@ -323,7 +493,7 @@ describe('basic serve usage', () => { expect(exitCode).toBe(2); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); - expect(stdout).toBeFalsy(); + expect(normalizeStdout(stdout)).toMatchSnapshot('stdout'); }); it('should log an error on unknown flag', async () => { @@ -331,23 +501,23 @@ describe('basic serve usage', () => { expect(exitCode).toBe(2); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); - expect(stdout).toBeFalsy(); + expect(normalizeStdout(stdout)).toMatchSnapshot('stdout'); }); it('should work with the "stats" option in config', async () => { const { stderr, stdout } = await runWatch(__dirname, ['serve', '--config', 'stats.config.js'], { - killString: /Compiled successfully/, + killString: /Compiled successfully|modules/i, }); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); - expect(stdout).toContain('Compiled successfully'); + expect(stdout).toContain(isWebpack5 ? 'compiled successfully' : 'modules'); expect(stdout.match(/HotModuleReplacementPlugin/g)).toBeNull(); }); it('should throw error when same ports in multicompiler', async () => { const { stderr, stdout } = await runWatch(__dirname, ['serve', '--config', 'same-ports-dev-serever.config.js']); - expect(stdout).toBeFalsy(); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); + expect(normalizeStdout(stdout)).toMatchSnapshot('stdout'); }); }); diff --git a/test/serve/basic/stats.config.js b/test/serve/basic/stats.config.js index 9d27015e4cc..0159b1dbf83 100644 --- a/test/serve/basic/stats.config.js +++ b/test/serve/basic/stats.config.js @@ -1,7 +1,15 @@ +const { isDevServer4 } = require('../../utils/test-utils'); + module.exports = { mode: 'development', devtool: false, - devServer: { - stats: 'minimal', - }, + devServer: isDevServer4 + ? { + dev: { + stats: 'minimal', + }, + } + : { + stats: 'minimal', + }, }; 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 index 7c7af9c0b64..aaeffa7f042 100644 --- 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 @@ -26,10 +26,3 @@ options.bonjour should be {Boolean} (https://webpack.js.org/configuration/dev-se `; exports[`invalid schema should log webpack-dev-server error and exit process on invalid config: stdout 1`] = `""`; - -exports[`invalid schema should log webpack-dev-server error and exit process on invalid flag: stderr 1`] = ` -"[webpack-cli] RangeError [ERR_SOCKET_BAD_PORT]: options.port should be >= 0 and < 65536. Received -1. - at stack" -`; - -exports[`invalid schema should log webpack-dev-server error and exit process on invalid flag: 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 index b800d0008e3..592e306ed93 100644 --- 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 @@ -24,10 +24,3 @@ options.bonjour should be {Boolean} (https://webpack.js.org/configuration/dev-se `; exports[`invalid schema should log webpack-dev-server error and exit process on invalid config: stdout 1`] = `""`; - -exports[`invalid schema should log webpack-dev-server error and exit process on invalid flag: stderr 1`] = ` -"[webpack-cli] RangeError [ERR_SOCKET_BAD_PORT]: options.port should be >= 0 and < 65536. Received -1. - at stack" -`; - -exports[`invalid schema should log webpack-dev-server error and exit process on invalid flag: 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 new file mode 100644 index 00000000000..1af2481082e --- /dev/null +++ b/test/serve/invalid-schema/__snapshots__/invalid-schema.test.js.snap.devServer4.webpack4 @@ -0,0 +1,27 @@ +// 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 configuration object. Object has been initialized using a configuration object that does not match the API schema. + - configuration.bonjour should be a boolean. + -> Broadcasts the server via ZeroConf networking on start. 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.webpack5 b/test/serve/invalid-schema/__snapshots__/invalid-schema.test.js.snap.devServer4.webpack5 new file mode 100644 index 00000000000..9c3aeaffc0e --- /dev/null +++ b/test/serve/invalid-schema/__snapshots__/invalid-schema.test.js.snap.devServer4.webpack5 @@ -0,0 +1,25 @@ +// 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] Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema. + - configuration.bonjour should be a boolean. + -> Broadcasts the server via ZeroConf networking on start. 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/invalid-schema.test.js b/test/serve/invalid-schema/invalid-schema.test.js index 72eb33d464f..95030317d64 100644 --- a/test/serve/invalid-schema/invalid-schema.test.js +++ b/test/serve/invalid-schema/invalid-schema.test.js @@ -18,7 +18,8 @@ describe('invalid schema', () => { expect(normalizeStdout(stdout)).toMatchSnapshot('stdout'); }); - it('should log webpack-dev-server error and exit process on invalid flag', async () => { + // TODO need fix on webpack-dev-server side + it.skip('should log webpack-dev-server error and exit process on invalid flag', async () => { const { exitCode, stderr, stdout } = await run(__dirname, ['serve', '--port', '-1']); expect(exitCode).toEqual(2); diff --git a/test/serve/serve-variable/__snapshots__/serve-basic.test.js.snap.devServer3.webpack4 b/test/serve/serve-variable/__snapshots__/serve-basic.test.js.snap.devServer3.webpack4 index 56d5b37ccb4..c60d10f6646 100644 --- a/test/serve/serve-variable/__snapshots__/serve-basic.test.js.snap.devServer3.webpack4 +++ b/test/serve/serve-variable/__snapshots__/serve-basic.test.js.snap.devServer3.webpack4 @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`serve variable compiles without flags and export variable: stderr 1`] = `""`; +exports[`serve variable compiles without flags and export variable 1`] = `""`; diff --git a/test/serve/serve-variable/__snapshots__/serve-basic.test.js.snap.devServer3.webpack5 b/test/serve/serve-variable/__snapshots__/serve-basic.test.js.snap.devServer3.webpack5 index 56d5b37ccb4..c60d10f6646 100644 --- a/test/serve/serve-variable/__snapshots__/serve-basic.test.js.snap.devServer3.webpack5 +++ b/test/serve/serve-variable/__snapshots__/serve-basic.test.js.snap.devServer3.webpack5 @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`serve variable compiles without flags and export variable: stderr 1`] = `""`; +exports[`serve variable compiles without flags and export variable 1`] = `""`; diff --git a/test/serve/serve-variable/__snapshots__/serve-basic.test.js.snap.devServer4.webpack4 b/test/serve/serve-variable/__snapshots__/serve-basic.test.js.snap.devServer4.webpack4 new file mode 100644 index 00000000000..3fb634186bc --- /dev/null +++ b/test/serve/serve-variable/__snapshots__/serve-basic.test.js.snap.devServer4.webpack4 @@ -0,0 +1,9 @@ +// 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/serve-variable/__snapshots__/serve-basic.test.js.snap.devServer4.webpack5 b/test/serve/serve-variable/__snapshots__/serve-basic.test.js.snap.devServer4.webpack5 new file mode 100644 index 00000000000..3fb634186bc --- /dev/null +++ b/test/serve/serve-variable/__snapshots__/serve-basic.test.js.snap.devServer4.webpack5 @@ -0,0 +1,9 @@ +// 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/serve-variable/serve-basic.test.js b/test/serve/serve-variable/serve-basic.test.js index cc0cc77b3b6..ba6c28d2326 100644 --- a/test/serve/serve-variable/serve-basic.test.js +++ b/test/serve/serve-variable/serve-basic.test.js @@ -3,7 +3,7 @@ const path = require('path'); // eslint-disable-next-line node/no-unpublished-require const getPort = require('get-port'); -const { runWatch, normalizeStderr } = require('../../utils/test-utils'); +const { runWatch, normalizeStderr, isDevServer4 } = require('../../utils/test-utils'); const testPath = path.resolve(__dirname); @@ -17,9 +17,15 @@ describe('serve variable', () => { it('compiles without flags and export variable', async () => { const { stdout, stderr } = await runWatch(testPath, ['serve', '--port', port]); - expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); + expect(normalizeStderr(stderr)).toMatchSnapshot(); expect(stdout).toContain('main.js'); - expect(stdout).not.toContain('HotModuleReplacementPlugin'); + + if (isDevServer4) { + expect(stdout).not.toContain('HotModuleReplacementPlugin'); + } else { + expect(stdout).not.toContain('HotModuleReplacementPlugin'); + } + expect(stdout).toContain('PASS'); }); }); 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 new file mode 100644 index 00000000000..893b938dd83 --- /dev/null +++ b/test/serve/with-custom-port/__snapshots__/serve-custom-config.test.js.snap.devServer4.webpack4 @@ -0,0 +1,33 @@ +// 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/serve/with-custom-port/__snapshots__/serve-custom-config.test.js.snap.devServer4.webpack5 b/test/serve/with-custom-port/__snapshots__/serve-custom-config.test.js.snap.devServer4.webpack5 new file mode 100644 index 00000000000..893b938dd83 --- /dev/null +++ b/test/serve/with-custom-port/__snapshots__/serve-custom-config.test.js.snap.devServer4.webpack5 @@ -0,0 +1,33 @@ +// 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/serve/with-custom-port/serve-custom-config.test.js b/test/serve/with-custom-port/serve-custom-config.test.js index fe0eda10cef..6808e94b1b8 100644 --- a/test/serve/with-custom-port/serve-custom-config.test.js +++ b/test/serve/with-custom-port/serve-custom-config.test.js @@ -3,7 +3,7 @@ const path = require('path'); // eslint-disable-next-line node/no-unpublished-require const getPort = require('get-port'); -const { runWatch, normalizeStderr } = require('../../utils/test-utils'); +const { runWatch, normalizeStderr, isDevServer4 } = require('../../utils/test-utils'); const testPath = path.resolve(__dirname); @@ -18,45 +18,58 @@ describe('serve with devServer in config', () => { const { stdout, stderr } = await runWatch(testPath, ['serve']); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); - // Should output the correct bundle file + + if (isDevServer4) { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } else { + expect(stdout).not.toContain('HotModuleReplacementPlugin'); + expect(stdout).toContain('http://0.0.0.0:1234'); + } + expect(stdout).toContain('main.js'); - expect(stdout).not.toContain('HotModuleReplacementPlugin'); - // Runs at correct host and port - expect(stdout).toContain('http://0.0.0.0:1234'); }); it('Port flag should override the config port', async () => { const { stdout, stderr } = await runWatch(testPath, ['serve', '--port', port]); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); - // Should output the correct bundle file + + if (isDevServer4) { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } else { + expect(stdout).not.toContain('HotModuleReplacementPlugin'); + expect(stdout).toContain(`http://0.0.0.0:${port}`); + } + expect(stdout).toContain('main.js'); - expect(stdout).not.toContain('HotModuleReplacementPlugin'); - // Runs at correct host and port - expect(stdout).toContain(`http://0.0.0.0:${port}`); }); it('Passing hot flag works alongside other server config', async () => { const { stdout, stderr } = await runWatch(testPath, ['serve', '--port', port, '--hot']); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); - // Should output the correct bundle file + + if (isDevServer4) { + expect(stdout).toContain('HotModuleReplacementPlugin'); + } else { + expect(stdout).toContain('HotModuleReplacementPlugin'); + expect(stdout).toContain(`http://0.0.0.0:${port}`); + } + expect(stdout).toContain('main.js'); - // HMR is being used - expect(stdout).toContain('HotModuleReplacementPlugin'); - // Runs at correct host and port - expect(stdout).toContain(`http://0.0.0.0:${port}`); }); it('works fine when no-hot flag is passed alongside other server config', async () => { const { stdout, stderr } = await runWatch(testPath, ['serve', '--port', port, '--no-hot']); expect(normalizeStderr(stderr)).toMatchSnapshot('stderr'); - // Should output the correct bundle file - expect(stdout).toContain('main.js'); - // HMR is not being used expect(stdout).not.toContain('HotModuleReplacementPlugin'); - // Runs at correct host and port - expect(stdout).toContain(`http://0.0.0.0:${port}`); + + if (!isDevServer4) { + // Runs at correct host and port + expect(stdout).toContain(`http://0.0.0.0:${port}`); + } + + expect(stdout).toContain('main.js'); }); }); diff --git a/test/serve/with-custom-port/webpack.config.js b/test/serve/with-custom-port/webpack.config.js index 0b86f19706c..c0a8ac96ef6 100644 --- a/test/serve/with-custom-port/webpack.config.js +++ b/test/serve/with-custom-port/webpack.config.js @@ -3,9 +3,10 @@ const WebpackCLITestPlugin = require('../../utils/webpack-cli-test-plugin'); module.exports = { mode: 'development', devtool: false, + stats: 'detailed', devServer: { port: 1234, host: '0.0.0.0', }, - plugins: [new WebpackCLITestPlugin(['plugins'], false)], + plugins: [new WebpackCLITestPlugin(['mode'], false, 'hooks.compilation.taps')], }; diff --git a/test/utils/test-utils.js b/test/utils/test-utils.js index ac529bfd8b3..7c44735545a 100644 --- a/test/utils/test-utils.js +++ b/test/utils/test-utils.js @@ -7,6 +7,7 @@ const stripAnsi = require('strip-ansi'); const path = require('path'); const fs = require('fs'); const execa = require('execa'); +const internalIp = require('internal-ip'); const { exec } = require('child_process'); const { node: execaNode } = execa; const { Writable } = require('readable-stream'); @@ -274,12 +275,60 @@ const normalizeStderr = (stderr) => { let normalizedStderr = stripAnsi(stderr); normalizedStderr = normalizeCwd(normalizedStderr); + + const networkIPv4 = internalIp.v4.sync(); + + if (networkIPv4) { + normalizedStderr = normalizedStderr.replace(new RegExp(networkIPv4, 'g'), ''); + } + + const networkIPv6 = internalIp.v6.sync(); + + if (networkIPv6) { + normalizedStderr = normalizedStderr.replace(new RegExp(networkIPv6, 'g'), ''); + } + + normalizedStderr = normalizedStderr.replace(/:[0-9]+\//g, ':/'); + + if (!/On Your Network \(IPv6\)/.test(stderr)) { + // Github Actions doesnt' support IPv6 on ubuntu in some cases + normalizedStderr = normalizedStderr.split('\n'); + + const ipv4MessageIndex = normalizedStderr.findIndex((item) => /On Your Network \(IPv4\)/.test(item)); + + if (ipv4MessageIndex !== -1) { + normalizedStderr.splice( + ipv4MessageIndex + 1, + 0, + ' [webpack-dev-server] On Your Network (IPv6): http://[]:/', + ); + } + + normalizedStderr = normalizedStderr.join('\n'); + } + normalizedStderr = normalizeVersions(normalizedStderr); normalizedStderr = normalizeError(normalizedStderr); return normalizedStderr; }; +const getWebpackCliArguments = (startWith) => { + if (typeof startWith === 'undefined') { + return cli.getArguments(); + } + + const result = {}; + + for (const [name, value] of Object.entries(cli.getArguments())) { + if (name.startsWith(startWith)) { + result[name] = value; + } + } + + return result; +}; + const readFile = (path, options = {}) => new Promise((resolve, reject) => { fs.readFile(path, options, (err, stats) => { @@ -310,22 +359,6 @@ const uniqueDirectoryForTest = async () => { return result; }; -const getWebpackCliArguments = (startWith) => { - if (typeof startWith === 'undefined') { - return cli.getArguments(); - } - - const result = {}; - - for (const [name, value] of Object.entries(cli.getArguments())) { - if (name.startsWith(startWith)) { - result[name] = value; - } - } - - return result; -}; - module.exports = { run, runAndGetProcess, diff --git a/yarn.lock b/yarn.lock index 3f02d9f013f..881a224dae3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3701,6 +3701,13 @@ default-gateway@^4.2.0: execa "^1.0.0" ip-regex "^2.1.0" +default-gateway@^6.0.0: + version "6.0.3" + resolved "https://registry.yarnpkg.com/default-gateway/-/default-gateway-6.0.3.tgz#819494c888053bdb743edbf343d6cdf7f2943a71" + integrity sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg== + dependencies: + execa "^5.0.0" + default-require-extensions@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/default-require-extensions/-/default-require-extensions-3.0.0.tgz#e03f93aac9b2b6443fc52e5e4a37b3ad9ad8df96" @@ -5687,6 +5694,16 @@ internal-ip@^4.3.0: default-gateway "^4.2.0" ipaddr.js "^1.9.0" +internal-ip@^6.2.0: + version "6.2.0" + resolved "https://registry.yarnpkg.com/internal-ip/-/internal-ip-6.2.0.tgz#d5541e79716e406b74ac6b07b856ef18dc1621c1" + integrity sha512-D8WGsR6yDt8uq7vDMu7mjcR+yRMm3dW8yufyChmszWRjcSHuxLBkR3GdS2HZAjodsaGuCvXeEJpueisXJULghg== + dependencies: + default-gateway "^6.0.0" + ipaddr.js "^1.9.1" + is-ip "^3.1.0" + p-event "^4.2.0" + interpret@^1.0.0: version "1.4.0" resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e" @@ -5702,12 +5719,17 @@ ip-regex@^2.1.0: resolved "https://registry.yarnpkg.com/ip-regex/-/ip-regex-2.1.0.tgz#fa78bf5d2e6913c911ce9f819ee5146bb6d844e9" integrity sha1-+ni/XS5pE8kRzp+BnuUUa7bYROk= +ip-regex@^4.0.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/ip-regex/-/ip-regex-4.3.0.tgz#687275ab0f57fa76978ff8f4dddc8a23d5990db5" + integrity sha512-B9ZWJxHHOHUhUjCPrMpLD4xEq35bUTClHM1S6CBU5ixQnkZmwipwgc96vAd7AAGM9TGHvJR+Uss+/Ak6UphK+Q== + ip@^1.1.0, ip@^1.1.5: version "1.1.5" resolved "https://registry.yarnpkg.com/ip/-/ip-1.1.5.tgz#bdded70114290828c0a039e72ef25f5aaec4354a" integrity sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo= -ipaddr.js@1.9.1, ipaddr.js@^1.9.0: +ipaddr.js@1.9.1, ipaddr.js@^1.9.0, ipaddr.js@^1.9.1: version "1.9.1" resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3" integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g== @@ -5886,6 +5908,13 @@ is-glob@^4.0.0, is-glob@^4.0.1: dependencies: is-extglob "^2.1.1" +is-ip@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/is-ip/-/is-ip-3.1.0.tgz#2ae5ddfafaf05cb8008a62093cf29734f657c5d8" + integrity sha512-35vd5necO7IitFPjd/YBeqwWnyDWbuLH9ZXQdMfDA8TEo7pv5X8yfrvVO3xbJbLUlERCMvf6X0hTUamQxCYJ9Q== + dependencies: + ip-regex "^4.0.0" + is-lambda@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/is-lambda/-/is-lambda-1.0.1.tgz#3d9877899e6a53efc0160504cde15f82e6f061d5" @@ -8118,6 +8147,13 @@ p-each-series@^2.1.0: resolved "https://registry.yarnpkg.com/p-each-series/-/p-each-series-2.2.0.tgz#105ab0357ce72b202a8a8b94933672657b5e2a9a" integrity sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA== +p-event@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/p-event/-/p-event-4.2.0.tgz#af4b049c8acd91ae81083ebd1e6f5cae2044c1b5" + integrity sha512-KXatOjCRXXkSePPb1Nbi0p0m+gQAwdlbhi4wQKJPI1HsMQS9g+Sqp2o+QHziPr7eYJyOZet836KoHEVM1mwOrQ== + dependencies: + p-timeout "^3.1.0" + p-finally@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" @@ -8226,7 +8262,7 @@ p-retry@^3.0.1: dependencies: retry "^0.12.0" -p-timeout@^3.2.0: +p-timeout@^3.1.0, p-timeout@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/p-timeout/-/p-timeout-3.2.0.tgz#c7e17abc971d2a7962ef83626b35d635acf23dfe" integrity sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg== @@ -10733,7 +10769,7 @@ webpack-dev-middleware@^3.7.2: range-parser "^1.2.1" webpack-log "^2.0.0" -webpack-dev-server@^3.11.1: +webpack-dev-server@^3.11.2: version "3.11.2" resolved "https://registry.yarnpkg.com/webpack-dev-server/-/webpack-dev-server-3.11.2.tgz#695ebced76a4929f0d5de7fd73fafe185fe33708" integrity sha512-A80BkuHRQfCiNtGBS1EMf2ChTUs0x+B3wGDFmOeT4rmJOHhHTCH2naNxIHhmkr0/UillP4U3yeIyv1pNp+QDLQ== @@ -10796,10 +10832,10 @@ webpack-sources@^2.1.1: source-list-map "^2.0.1" source-map "^0.6.1" -webpack@^5.34.0: - version "5.34.0" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.34.0.tgz#8f12bfd3474e7543232345b89294cfe8a5191c10" - integrity sha512-+WiFMgaZqhu7zKN64LQ7z0Ml4WWI+9RwG6zmS0wJDQXiCeg3hpN8fYFNJ+6WlosDT55yVxTfK7XHUAOVR4rLyA== +webpack@^5.35.0: + version "5.35.0" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.35.0.tgz#4db23c2b96c4e53a90c5732d7cdb301a84a33576" + integrity sha512-au3gu55yYF/h6NXFr0KZPZAYxS6Nlc595BzYPke8n0CSff5WXcoixtjh5LC/8mXunkRKxhymhXmBY0+kEbR6jg== dependencies: "@types/eslint-scope" "^3.7.0" "@types/estree" "^0.0.47"