From 403ef8a89521491d62a00c7570714417ffc2a28f Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Sun, 7 Aug 2022 06:44:36 +0530 Subject: [PATCH] fix: improve description of the `--disable-interpret` option --- packages/webpack-cli/src/webpack-cli.ts | 2 +- .../help.test.js.snap.devServer4.webpack5 | 38 +++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/packages/webpack-cli/src/webpack-cli.ts b/packages/webpack-cli/src/webpack-cli.ts index 5903d7cc858..b4487aaa0bb 100644 --- a/packages/webpack-cli/src/webpack-cli.ts +++ b/packages/webpack-cli/src/webpack-cli.ts @@ -739,7 +739,7 @@ class WebpackCLI implements IWebpackCLI { values: [true], }, ], - description: "Disable interpret a config file.", + description: "Disable interpret for loading the config file.", }, // Complex configs { diff --git a/test/help/__snapshots__/help.test.js.snap.devServer4.webpack5 b/test/help/__snapshots__/help.test.js.snap.devServer4.webpack5 index 8c93e46a642..1f337327b83 100644 --- a/test/help/__snapshots__/help.test.js.snap.devServer4.webpack5 +++ b/test/help/__snapshots__/help.test.js.snap.devServer4.webpack5 @@ -97,7 +97,7 @@ Options: -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. --config-name Name of the configuration to use. -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. + --disable-interpret Disable interpret for loading the config file. --env Environment passed to the configuration when it is a function. --node-env Sets process.env.NODE_ENV to the specified value. --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. @@ -156,7 +156,7 @@ Options: -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. --config-name Name of the configuration to use. -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. + --disable-interpret Disable interpret for loading the config file. --env Environment passed to the configuration when it is a function. --node-env Sets process.env.NODE_ENV to the specified value. --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. @@ -215,7 +215,7 @@ Options: -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. --config-name Name of the configuration to use. -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. + --disable-interpret Disable interpret for loading the config file. --env Environment passed to the configuration when it is a function. --node-env Sets process.env.NODE_ENV to the specified value. --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. @@ -273,7 +273,7 @@ Options: -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. --config-name Name of the configuration to use. -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. + --disable-interpret Disable interpret for loading the config file. --env Environment passed to the configuration when it is a function. --node-env Sets process.env.NODE_ENV to the specified value. --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. @@ -319,7 +319,7 @@ Options: -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. --config-name Name of the configuration to use. -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. + --disable-interpret Disable interpret for loading the config file. --env Environment passed to the configuration when it is a function. --node-env Sets process.env.NODE_ENV to the specified value. --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. @@ -367,7 +367,7 @@ Options: --config-name Name of the configuration to use. -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. + --disable-interpret Disable interpret for loading the config file. --env Environment passed to the configuration when it is a function. --node-env Sets process.env.NODE_ENV to the specified value. @@ -428,7 +428,7 @@ Options: --config-name Name of the configuration to use. -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. + --disable-interpret Disable interpret for loading the config file. --env Environment passed to the configuration when it is a function. --node-env Sets process.env.NODE_ENV to the specified value. @@ -487,7 +487,7 @@ Options: -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. --config-name Name of the configuration to use. -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. + --disable-interpret Disable interpret for loading the config file. --env Environment passed to the configuration when it is a function. --node-env Sets process.env.NODE_ENV to the specified value. --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. @@ -533,7 +533,7 @@ Options: -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. --config-name Name of the configuration to use. -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. + --disable-interpret Disable interpret for loading the config file. --env Environment passed to the configuration when it is a function. --node-env Sets process.env.NODE_ENV to the specified value. --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. @@ -1513,7 +1513,7 @@ Options: -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. --config-name Name of the configuration to use. -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. + --disable-interpret Disable interpret for loading the config file. --env Environment passed to the configuration when it is a function. --node-env Sets process.env.NODE_ENV to the specified value. --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. @@ -1557,7 +1557,7 @@ Options: -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. --config-name Name of the configuration to use. -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. + --disable-interpret Disable interpret for loading the config file. --env Environment passed to the configuration when it is a function. --node-env Sets process.env.NODE_ENV to the specified value. --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. @@ -1603,7 +1603,7 @@ Options: --config-name Name of the configuration to use. -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. + --disable-interpret Disable interpret for loading the config file. --env Environment passed to the configuration when it is a function. --node-env Sets process.env.NODE_ENV to the specified value. @@ -1662,7 +1662,7 @@ Options: --config-name Name of the configuration to use. -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. + --disable-interpret Disable interpret for loading the config file. --env Environment passed to the configuration when it is a function. --node-env Sets process.env.NODE_ENV to the specified value. @@ -1719,7 +1719,7 @@ Options: -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. --config-name Name of the configuration to use. -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. + --disable-interpret Disable interpret for loading the config file. --env Environment passed to the configuration when it is a function. --node-env Sets process.env.NODE_ENV to the specified value. --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. @@ -1763,7 +1763,7 @@ Options: -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. --config-name Name of the configuration to use. -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. + --disable-interpret Disable interpret for loading the config file. --env Environment passed to the configuration when it is a function. --node-env Sets process.env.NODE_ENV to the specified value. --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. @@ -1808,7 +1808,7 @@ Options: -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. --config-name Name of the configuration to use. -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. + --disable-interpret Disable interpret for loading the config file. --env Environment passed to the configuration when it is a function. --node-env Sets process.env.NODE_ENV to the specified value. --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. @@ -1867,7 +1867,7 @@ Options: -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. --config-name Name of the configuration to use. -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. + --disable-interpret Disable interpret for loading the config file. --env Environment passed to the configuration when it is a function. --node-env Sets process.env.NODE_ENV to the specified value. --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. @@ -2116,7 +2116,7 @@ Options: -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. --config-name Name of the configuration to use. -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. + --disable-interpret Disable interpret for loading the config file. --env Environment passed to the configuration when it is a function. --node-env Sets process.env.NODE_ENV to the specified value. --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. @@ -2173,7 +2173,7 @@ Options: -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. --config-name Name of the configuration to use. -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret a config file. + --disable-interpret Disable interpret for loading the config file. --env Environment passed to the configuration when it is a function. --node-env Sets process.env.NODE_ENV to the specified value. --analyze It invokes webpack-bundle-analyzer plugin to get bundle information.