We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee7c28a commit 15b90b3Copy full SHA for 15b90b3
packages/vite/src/node/cli.ts
@@ -236,6 +236,7 @@ cli
236
.option('--strictPort', `[boolean] exit if specified port is already in use`)
237
.option('--https', `[boolean] use TLS + HTTP/2`)
238
.option('--open [path]', `[boolean | string] open browser on startup`)
239
+ .option('--outDir <dir>', `[string] output directory (default: dist)`)
240
.action(
241
async (
242
root: string,
@@ -245,6 +246,7 @@ cli
245
246
https?: boolean
247
open?: boolean | string
248
strictPort?: boolean
249
+ outDir?: string
250
} & GlobalCLIOptions
251
) => {
252
filterDuplicateOptions(options)
@@ -256,6 +258,9 @@ cli
256
258
configFile: options.config,
257
259
logLevel: options.logLevel,
260
mode: options.mode,
261
+ build: {
262
+ outDir: options.outDir
263
+ },
264
preview: {
265
port: options.port,
266
strictPort: options.strictPort,
0 commit comments