feat(vite): configuration updates (#13816)
This commit is contained in:
parent
c051a279cc
commit
c3c9b2d24d
@ -192,8 +192,7 @@
|
||||
},
|
||||
"mode": {
|
||||
"type": "string",
|
||||
"description": "Mode to run the server in.",
|
||||
"enum": ["production", "development"]
|
||||
"description": "Mode to run the server in."
|
||||
},
|
||||
"clearScreen": {
|
||||
"description": "Set to false to prevent Vite from clearing the terminal screen when logging certain messages.",
|
||||
@ -275,6 +274,10 @@
|
||||
"description": "When set to true, the build will also generate an SSR manifest for determining style links and asset preload directives in production. When the value is a string, it will be used as the manifest file name.",
|
||||
"oneOf": [{ "type": "boolean" }, { "type": "string" }]
|
||||
},
|
||||
"ssr": {
|
||||
"description": "Produce SSR-oriented build. The value can be a string to directly specify the SSR entry, or true, which requires specifying the SSR entry via rollupOptions.input.",
|
||||
"oneOf": [{ "type": "boolean" }, { "type": "string" }]
|
||||
},
|
||||
"logLevel": {
|
||||
"type": "string",
|
||||
"description": "Adjust console output verbosity.",
|
||||
@ -282,8 +285,7 @@
|
||||
},
|
||||
"mode": {
|
||||
"type": "string",
|
||||
"description": "Mode to run the build in.",
|
||||
"enum": ["production", "development"]
|
||||
"description": "Mode to run the build in."
|
||||
}
|
||||
},
|
||||
"definitions": {},
|
||||
|
||||
@ -9,5 +9,6 @@ export interface ViteBuildExecutorOptions {
|
||||
manifest?: boolean | string;
|
||||
ssrManifest?: boolean | string;
|
||||
logLevel?: 'info' | 'warn' | 'error' | 'silent';
|
||||
mode?: 'production' | 'development';
|
||||
mode?: string;
|
||||
ssr?: boolean | string;
|
||||
}
|
||||
|
||||
@ -94,6 +94,17 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"ssr": {
|
||||
"description": "Produce SSR-oriented build. The value can be a string to directly specify the SSR entry, or true, which requires specifying the SSR entry via rollupOptions.input.",
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
"logLevel": {
|
||||
"type": "string",
|
||||
"description": "Adjust console output verbosity.",
|
||||
@ -101,8 +112,7 @@
|
||||
},
|
||||
"mode": {
|
||||
"type": "string",
|
||||
"description": "Mode to run the build in.",
|
||||
"enum": ["production", "development"]
|
||||
"description": "Mode to run the build in."
|
||||
}
|
||||
},
|
||||
"definitions": {},
|
||||
|
||||
@ -9,6 +9,6 @@ export interface ViteDevServerExecutorOptions {
|
||||
open?: string | boolean;
|
||||
cors?: boolean;
|
||||
logLevel?: info | warn | error | silent;
|
||||
mode?: 'production' | 'development';
|
||||
mode?: string;
|
||||
clearScreen?: boolean;
|
||||
}
|
||||
|
||||
@ -70,8 +70,7 @@
|
||||
},
|
||||
"mode": {
|
||||
"type": "string",
|
||||
"description": "Mode to run the server in.",
|
||||
"enum": ["production", "development"]
|
||||
"description": "Mode to run the server in."
|
||||
},
|
||||
"clearScreen": {
|
||||
"description": "Set to false to prevent Vite from clearing the terminal screen when logging certain messages.",
|
||||
|
||||
@ -121,6 +121,7 @@ export function getViteBuildOptions(
|
||||
minify: options.minify,
|
||||
manifest: options.manifest,
|
||||
ssrManifest: options.ssrManifest,
|
||||
ssr: options.ssr,
|
||||
logLevel: options.logLevel,
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user