diff --git a/.cspell.json b/.cspell.json index 156c2be7a33..5dd6e3f4b3d 100644 --- a/.cspell.json +++ b/.cspell.json @@ -4,6 +4,8 @@ "words": [ "Atsumu", "autoprefixer", + "treemap", + "Dont", "barbaz", "Cantarell", "Chizuru", diff --git a/packages/webpack-cli/bin/cli.js b/packages/webpack-cli/bin/cli.js old mode 100755 new mode 100644 index 5305a836bfd..3df9bdbd85b --- a/packages/webpack-cli/bin/cli.js +++ b/packages/webpack-cli/bin/cli.js @@ -4,6 +4,7 @@ const importLocal = require("import-local"); const runCLI = require("../lib/bootstrap"); +require("webpack-bundle-analyzer").cli.arguments if (!process.env.WEBPACK_CLI_SKIP_IMPORT_LOCAL) { // Prefer the local installation of `webpack-cli` diff --git a/packages/webpack-cli/src/types.ts b/packages/webpack-cli/src/types.ts index edbc901b7f3..9546f10b099 100644 --- a/packages/webpack-cli/src/types.ts +++ b/packages/webpack-cli/src/types.ts @@ -171,7 +171,6 @@ type WebpackDevServerOptions = DevServerConfig & nodeEnv?: "string"; watchOptionsStdin?: boolean; progress?: boolean | "profile" | undefined; - analyze?: boolean; prefetch?: string; json?: boolean; entry: EntryOptions; diff --git a/packages/webpack-cli/src/webpack-cli.ts b/packages/webpack-cli/src/webpack-cli.ts index 73b194338b8..575dfdd63f8 100644 --- a/packages/webpack-cli/src/webpack-cli.ts +++ b/packages/webpack-cli/src/webpack-cli.ts @@ -986,7 +986,6 @@ class WebpackCLI implements IWebpackCLI { helpLevel: "verbose", }, - // Adding more plugins { name: "analyze", configs: [