Skip to content

Commit

Permalink
Merge branch 'preactjs:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
sthagen authored Jun 24, 2022
2 parents bf87bf0 + 793b8a6 commit 5e53c37
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions docs/public/content/docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ To list additional command line options available in this mode, enter:
npx wmr build --help
```

### --public

- Type: `string`
- Default: `public/`

Your web app's root directory for source files.

### --out

- Type: `string`
Expand Down Expand Up @@ -120,6 +127,24 @@ Generate Source Map files.

Launch an interactive bundle visualizer to inspect which libraries were included in your bundles. This is commonly used to get a picture of the cost of certain libraries and find areas for size improvements.

### --minify

- Type: `boolean`
- Default: `true`

Enable minification of the code generated by WMR.

### --cwd

- Type: `string`
- Default: `.`

The path to where WMR was launched from. Used to look up `package.json`. Equivalent to `(cd FOO && wmr build)`.

### --debug

If this flag is passed, print internal debugging messages to the console. Same as setting the environment variable `DEBUG=true`.

## Serve

The `serve` command starts a production web server using the files generated by the `build` command. Unlike the development server, this `serve` doesn't support any form of HMR. It's mainly useful for performance testing and ensuring prerendering is working optimally.
Expand Down
2 changes: 1 addition & 1 deletion docs/public/content/docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ The mode WMR was started in.

The path to where WMR was launched from. Used to look up `package.json`.

### root
### public

- Type: `string`
- Default: `process.cwd()/public`
Expand Down

0 comments on commit 5e53c37

Please sign in to comment.