We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76120e7 commit 2f87390Copy full SHA for 2f87390
packages/angular_devkit/build_angular/src/dev-server/index.ts
@@ -168,10 +168,10 @@ export function serveWebpackBrowser(
168
continue;
169
}
170
171
- for (let index = 0; index < value.length; index++) {
172
- if (value[index].includes('webpack-dev-server/client/index.js')) {
173
- config.entry[key] = value.splice(index + 1, 1);
174
- }
+ const webpackClientScriptIndex = value.findIndex(x => x.includes('webpack-dev-server/client/index.js'));
+ if (webpackClientScriptIndex >= 0) {
+ // Remove the webpack-dev-server/client script from array.
+ value.splice(webpackClientScriptIndex, 1);
175
176
177
0 commit comments