feat(vite): configuration updates (#13816)
This commit is contained in:
parent
c051a279cc
commit
c3c9b2d24d
@ -192,8 +192,7 @@
|
|||||||
},
|
},
|
||||||
"mode": {
|
"mode": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Mode to run the server in.",
|
"description": "Mode to run the server in."
|
||||||
"enum": ["production", "development"]
|
|
||||||
},
|
},
|
||||||
"clearScreen": {
|
"clearScreen": {
|
||||||
"description": "Set to false to prevent Vite from clearing the terminal screen when logging certain messages.",
|
"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.",
|
"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" }]
|
"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": {
|
"logLevel": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Adjust console output verbosity.",
|
"description": "Adjust console output verbosity.",
|
||||||
@ -282,8 +285,7 @@
|
|||||||
},
|
},
|
||||||
"mode": {
|
"mode": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Mode to run the build in.",
|
"description": "Mode to run the build in."
|
||||||
"enum": ["production", "development"]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"definitions": {},
|
"definitions": {},
|
||||||
|
|||||||
@ -9,5 +9,6 @@ export interface ViteBuildExecutorOptions {
|
|||||||
manifest?: boolean | string;
|
manifest?: boolean | string;
|
||||||
ssrManifest?: boolean | string;
|
ssrManifest?: boolean | string;
|
||||||
logLevel?: 'info' | 'warn' | 'error' | 'silent';
|
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": {
|
"logLevel": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Adjust console output verbosity.",
|
"description": "Adjust console output verbosity.",
|
||||||
@ -101,8 +112,7 @@
|
|||||||
},
|
},
|
||||||
"mode": {
|
"mode": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Mode to run the build in.",
|
"description": "Mode to run the build in."
|
||||||
"enum": ["production", "development"]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"definitions": {},
|
"definitions": {},
|
||||||
|
|||||||
@ -9,6 +9,6 @@ export interface ViteDevServerExecutorOptions {
|
|||||||
open?: string | boolean;
|
open?: string | boolean;
|
||||||
cors?: boolean;
|
cors?: boolean;
|
||||||
logLevel?: info | warn | error | silent;
|
logLevel?: info | warn | error | silent;
|
||||||
mode?: 'production' | 'development';
|
mode?: string;
|
||||||
clearScreen?: boolean;
|
clearScreen?: boolean;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -70,8 +70,7 @@
|
|||||||
},
|
},
|
||||||
"mode": {
|
"mode": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Mode to run the server in.",
|
"description": "Mode to run the server in."
|
||||||
"enum": ["production", "development"]
|
|
||||||
},
|
},
|
||||||
"clearScreen": {
|
"clearScreen": {
|
||||||
"description": "Set to false to prevent Vite from clearing the terminal screen when logging certain messages.",
|
"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,
|
minify: options.minify,
|
||||||
manifest: options.manifest,
|
manifest: options.manifest,
|
||||||
ssrManifest: options.ssrManifest,
|
ssrManifest: options.ssrManifest,
|
||||||
|
ssr: options.ssr,
|
||||||
logLevel: options.logLevel,
|
logLevel: options.logLevel,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user