Skip to content

Commit 6b05a69

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 4952d5e commit 6b05a69

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export function getDevServerConfig(
125125
hot: hmr,
126126
proxy: addProxyConfig(root, proxyConfig),
127127
contentBase: false,
128-
logLevel: 'silent',
128+
logLevel: 'error',
129129
} as Configuration & { logLevel: Configuration['clientLogLevel'] },
130130
};
131131
}

0 commit comments

Comments
 (0)