Skip to content

Commit

Permalink
feat(cli): allow to specify sourcemap mode via --sourcemap build's op…
Browse files Browse the repository at this point in the history
…tion (#11505)
  • Loading branch information
wreckah committed Feb 22, 2023
1 parent 9d42f06 commit ee3b90a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/guide/cli.md
Expand Up @@ -54,7 +54,7 @@ vite build [root]
| `--assetsDir <dir>` | Directory under outDir to place assets in (default: `"assets"`) (`string`) |
| `--assetsInlineLimit <number>` | Static asset base64 inline threshold in bytes (default: `4096`) (`number`) |
| `--ssr [entry]` | Build specified entry for server-side rendering (`string`) |
| `--sourcemap` | Output source maps for build (default: `false`) (`boolean`) |
| `--sourcemap [output]` | Output source maps for build (default: `false`) (`boolean \| "inline" \| "hidden"`) |
| `--minify [minifier]` | Enable/disable minification, or specify minifier to use (default: `"esbuild"`) (`boolean \| "terser" \| "esbuild"`) |
| `--manifest [name]` | Emit build manifest json (`boolean \| string`) |
| `--ssrManifest [name]` | Emit ssr manifest json (`boolean \| string`) |
Expand Down
4 changes: 2 additions & 2 deletions packages/vite/src/node/cli.ts
Expand Up @@ -212,8 +212,8 @@ cli
`[string] build specified entry for server-side rendering`,
)
.option(
'--sourcemap',
`[boolean] output source maps for build (default: false)`,
'--sourcemap [output]',
`[boolean | "inline" | "hidden"] output source maps for build (default: false)`,
)
.option(
'--minify [minifier]',
Expand Down

0 comments on commit ee3b90a

Please sign in to comment.