Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
feat(@nguniversal/builders): add --verbose option to SSR Dev Server
Browse files Browse the repository at this point in the history
This change adds the `--verbose` option to the SSR dev server.

closes #2909
  • Loading branch information
alan-agius4 committed Feb 22, 2023
1 parent 8e483e9 commit 0e7dd9a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/builders/src/ssr-dev-server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,15 @@ export function execute(
serviceWorker: false,
watch: true,
progress: options.progress,
verbose: options.verbose,
// Disable bundle budgets are these are not meant to be used with a dev-server as this will add extra JavaScript for live-reloading.
budgets: [],
});

const serverTargetRun = context.scheduleTarget(serverTarget, {
watch: true,
progress: options.progress,
verbose: options.verbose,
});

const bsInstance = browserSync.create();
Expand Down Expand Up @@ -239,7 +241,7 @@ async function initBrowserSync(
server: false,
notify: false,
ghostMode: false,
logLevel: 'silent',
logLevel: options.verbose ? 'debug' : 'silent',
open,
https: getSslConfig(context.workspaceRoot, options),
};
Expand Down
4 changes: 4 additions & 0 deletions modules/builders/src/ssr-dev-server/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@
"proxyConfig": {
"type": "string",
"description": "Proxy configuration file."
},
"verbose": {
"type": "boolean",
"description": "Adds more details to output logging."
}
},
"additionalProperties": false,
Expand Down
3 changes: 3 additions & 0 deletions modules/builders/src/ssr-dev-server/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,7 @@ export interface Schema {

/** Proxy configuration file */
proxyConfig?: string;

/** Adds more details to output logging */
verbose: boolean;
}

0 comments on commit 0e7dd9a

Please sign in to comment.