We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6200f53 commit b1fd298Copy full SHA for b1fd298
1 file changed
build_tools/cli.ts
@@ -251,10 +251,19 @@ function parseArgs() {
251
mode: {
252
default: "production",
253
},
254
+ analyze: {
255
+ type: "boolean",
256
+ default: false,
257
+ description: "Print bundle size analysis.",
258
+ },
259
}),
260
handler: async (argv) => {
261
setConfig(await getWebpackConfig(argv, { watch: argv.watch }));
- await runWebpack("build", `--mode=${argv.mode}`);
262
+ await runWebpack(
263
+ "build",
264
+ `--mode=${argv.mode}`,
265
+ ...(argv.analyze ? [`--analyze`] : []),
266
+ );
267
268
})
269
.strict()
0 commit comments