Skip to content

Commit fd2416e

Browse files
authored
Add documentation for --save-bundle flag (#386)
1 parent 058b1f1 commit fd2416e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/size-limit/create-help.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export default process => {
4242
` ${y('--watch')} Runs in watch mode`,
4343
` ${y('--silent')} Show only failed limits`,
4444
` ${y('--debug')} Show internal configs for issue report`,
45+
` ${y('--save-bundle DIR')} Write output bundle to disk for manual review`,
4546
` ${y('--version')} Display version`
4647
)
4748
if (plugins.has('webpack')) {

packages/size-limit/test/__snapshots__/run.test.js.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ Check the real performance cost of your front-end project to users
223223
--watch Runs in watch mode
224224
--silent Show only failed limits
225225
--debug Show internal configs for issue report
226+
--save-bundle DIR Write output bundle to disk for manual review
226227
--version Display version
227228
228229
Examples:
@@ -323,6 +324,7 @@ Check the real performance cost of your front-end project to users
323324
--watch Runs in watch mode
324325
--silent Show only failed limits
325326
--debug Show internal configs for issue report
327+
--save-bundle DIR Write output bundle to disk for manual review
326328
--version Display version
327329
328330
Webpack options:
@@ -554,6 +556,7 @@ Check the real performance cost of your front-end project to users
554556
--watch Runs in watch mode
555557
--silent Show only failed limits
556558
--debug Show internal configs for issue report
559+
--save-bundle DIR Write output bundle to disk for manual review
557560
--version Display version
558561
559562
Webpack options:

0 commit comments

Comments
 (0)