Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cli.md #179

Merged
merged 1 commit into from
Jul 3, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 53 additions & 3 deletions src/i18n/en/docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ Displays all possible cli options
parcel help
```

### Version

Displays Parcel version number

```bash
parcel --version
```

## Options

### Output directory
Expand All @@ -57,7 +65,7 @@ root

### Set the public URL to serve on

Default: "/"
Default: [the same as the --out-dir option](#output-directory)

Available in: `serve`, `watch`, `build`

Expand Down Expand Up @@ -85,6 +93,26 @@ parcel build entry.js --target node

Possible targets: `node`, `browser`, `electron`

### Cache directory

Default: ".cache"

Available in: `serve`, `watch`, `build`

```bash
parcel build entry.js --cache-dir build/cache
```

### Port

Default: 1234

Available in: `serve`

```bash
parcel serve entry.js --port 1111
```

### Change Log level

Default: 3
Expand Down Expand Up @@ -148,7 +176,7 @@ parcel build entry.js --detailed-report

Default: https disabled

Available in: `serve`
Available in: `serve`, `watch` (listen on HTTPS for HMR connections)

```bash
parcel build entry.js --https
Expand All @@ -160,7 +188,7 @@ parcel build entry.js --https

Default: https disabled

Available in: `serve`
Available in: `serve`, `watch`

```bash
parcel entry.js --cert certificate.cert --key private.key
Expand Down Expand Up @@ -225,3 +253,25 @@ Available in: `serve`, `watch`, `build`
```bash
parcel build entry.js --no-cache
```

### Expose modules as UMD

Default: disabled

Available in: `serve`, `watch`, `build`

```bash
parcel serve entry.js --global myvariable
```

### Enable experimental scope hoisting/tree shaking support

Default: disabled

Available in: `build`

```bash
parcel serve entry.js --experimental-scope-hoisting
```

For more information, see the [Tree Shaking section](https://medium.com/@devongovett/parcel-v1-9-0-tree-shaking-2x-faster-watcher-and-more-87f2e1a70f79#4ed3) of Devon Govett's post on Parcel 1.9.