Skip to content

Commit

Permalink
feat(vite): configuration updates (#13816)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-stepanenko committed Dec 15, 2022
1 parent c051a27 commit c3c9b2d
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 10 deletions.
10 changes: 6 additions & 4 deletions docs/generated/packages/vite.json
Expand Up @@ -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.",
Expand Down Expand Up @@ -275,15 +274,18 @@
"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.",
"enum": ["info", "warn", "error", "silent"]
},
"mode": {
"type": "string",
"description": "Mode to run the build in.",
"enum": ["production", "development"]
"description": "Mode to run the build in."
}
},
"definitions": {},
Expand Down
3 changes: 2 additions & 1 deletion packages/vite/src/executors/build/schema.d.ts
Expand Up @@ -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;
}
14 changes: 12 additions & 2 deletions packages/vite/src/executors/build/schema.json
Expand Up @@ -94,15 +94,25 @@
}
]
},
"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.",
"enum": ["info", "warn", "error", "silent"]
},
"mode": {
"type": "string",
"description": "Mode to run the build in.",
"enum": ["production", "development"]
"description": "Mode to run the build in."
}
},
"definitions": {},
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/executors/dev-server/schema.d.ts
Expand Up @@ -9,6 +9,6 @@ export interface ViteDevServerExecutorOptions {
open?: string | boolean;
cors?: boolean;
logLevel?: info | warn | error | silent;
mode?: 'production' | 'development';
mode?: string;
clearScreen?: boolean;
}
3 changes: 1 addition & 2 deletions packages/vite/src/executors/dev-server/schema.json
Expand Up @@ -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.",
Expand Down
1 change: 1 addition & 0 deletions packages/vite/src/utils/options-utils.ts
Expand Up @@ -121,6 +121,7 @@ export function getViteBuildOptions(
minify: options.minify,
manifest: options.manifest,
ssrManifest: options.ssrManifest,
ssr: options.ssr,
logLevel: options.logLevel,
};

Expand Down

1 comment on commit c3c9b2d

@vercel
Copy link

@vercel vercel bot commented on c3c9b2d Dec 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-git-master-nrwl.vercel.app
nx.dev
nx-five.vercel.app
nx-dev-nrwl.vercel.app

Please sign in to comment.