Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): silence internal webpack dev serv…
Browse files Browse the repository at this point in the history
…er logging
  • Loading branch information
clydin authored and mgechev committed Nov 9, 2019
1 parent d53d2c6 commit 32f7d99
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,10 @@ export function serveWebpackBrowser(
}
}

if (buildEvent.success) {
context.logger.info(': Compiled successfully.');
}

return { ...buildEvent, baseUrl: serverAddress } as DevServerBuilderOutput;
}),
);
Expand Down Expand Up @@ -405,7 +409,7 @@ export function buildServerConfig(
const servePath = buildServePath(serverOptions, browserOptions, logger);
const { styles, scripts } = normalizeOptimization(browserOptions.optimization);

const config: WebpackDevServer.Configuration = {
const config: WebpackDevServer.Configuration & { logLevel: string} = {
host: serverOptions.host,
port: serverOptions.port,
headers: { 'Access-Control-Allow-Origin': '*' },
Expand Down Expand Up @@ -438,6 +442,7 @@ export function buildServerConfig(
publicPath: servePath,
hot: serverOptions.hmr,
contentBase: false,
logLevel: 'silent',
};

if (serverOptions.ssl) {
Expand Down

0 comments on commit 32f7d99

Please sign in to comment.