Skip to content

Commit

Permalink
fixup! Add statistics output options
Browse files Browse the repository at this point in the history
  • Loading branch information
legendecas committed Mar 6, 2020
1 parent f274fda commit fb962e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ npm i -g @zeit/ncc
```bash
$ ncc <cmd> <opts>
```
Eg:
Eg:
```bash
$ ncc build input.js -o dist
```
Expand Down Expand Up @@ -64,6 +64,7 @@ Outputs the Node.js compact build of `input.js` into `dist/index.js`.
-q, --quiet Disable build summaries / non-error outputs
-w, --watch Start a watched build
--v8-cache Emit a build using the v8 compile cache
--stats-out [file] Emit webpack stats as json to the specified output file
```

### Execution Testing
Expand Down
2 changes: 1 addition & 1 deletion src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Options:
-w, --watch Start a watched build
-t, --transpile-only Use transpileOnly option with the ts-loader
--v8-cache Emit a build using the v8 compile cache
--stats-out [file] Write stats to the file
--stats-out [file] Emit webpack stats as json to the specified output file
`;

// support an API mode for CLI testing
Expand Down

0 comments on commit fb962e4

Please sign in to comment.