Skip to content

Commit 46a5261

Browse files
committed
fix(@angular-devkit/build-angular): output webpack-dev-server and webpack-dev-middleware errors
With this change we configure `webpack-dev-middleware` and `webpack-dev-server` to print errors to the console, which previously were not displayed. This is because both of these libraries log/emit errors using the logger and the compilation API. Certain errors such as the one below, were being swallowed during `ng serve`. ``` An unhandled exception occurred: Prevent writing to file that only differs in casing or query string from already written file. This will lead to a race-condition and corrupted files on case-insensitive file systems. /home/circleci/ng/aio/dist/generated/docs/api/router/Routes.json /home/circleci/ng/aio/dist/generated/docs/api/router/ROUTES.json ``` (cherry picked from commit b55fc08)
1 parent 441a425 commit 46a5261

File tree

1 file changed

+1
-1
lines changed
  • packages/angular_devkit/build_angular/src/webpack/configs

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/webpack/configs/dev-server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export function getDevServerConfig(
126126
hot: hmr,
127127
proxy: addProxyConfig(root, proxyConfig),
128128
contentBase: false,
129-
logLevel: 'silent',
129+
logLevel: 'error',
130130
} as Configuration & { logLevel: Configuration['clientLogLevel'] },
131131
};
132132
}

0 commit comments

Comments
 (0)