Skip to content

Commit dee22e7

Browse files
hanslclydin
authored andcommitted
fix(@angular-devkit/build-angular): use the internal buildWebpackConfig method
Instead of directly calling the browser builder. This means it can be overridden by subclasses.
1 parent 323f13d commit dee22e7

File tree

1 file changed

+1
-2
lines changed
  • packages/angular_devkit/build_angular/src/dev-server

1 file changed

+1
-2
lines changed

packages/angular_devkit/build_angular/src/dev-server/index.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ export class DevServerBuilder implements Builder<DevServerBuilderOptions> {
8484
// Replace the assets in options with the normalized version.
8585
tap((assetPatternObjects => browserOptions.assets = assetPatternObjects)),
8686
concatMap(() => {
87-
const browserBuilder = new BrowserBuilder(this.context);
88-
const webpackConfig = browserBuilder.buildWebpackConfig(
87+
const webpackConfig = this.buildWebpackConfig(
8988
root, projectRoot, host, browserOptions as NormalizedBrowserBuilderSchema);
9089

9190
let webpackDevServerConfig: WebpackDevServer.Configuration;

0 commit comments

Comments
 (0)