From 332b0120df97fc05e52e4156b01df0208fbb925e Mon Sep 17 00:00:00 2001 From: Nikita Barsukov Date: Tue, 12 Dec 2023 17:55:06 +0300 Subject: [PATCH] docs(angular): use `@nx/angular:dev-server` instead of legacy `@nx/angular:webpack-dev-server` (#20637) --- docs/shared/guides/module-federation/dynamic-mfe-angular.md | 2 +- docs/shared/guides/use-environment-variables-in-angular.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/shared/guides/module-federation/dynamic-mfe-angular.md b/docs/shared/guides/module-federation/dynamic-mfe-angular.md index b4a997ef89..d21df9f132 100644 --- a/docs/shared/guides/module-federation/dynamic-mfe-angular.md +++ b/docs/shared/guides/module-federation/dynamic-mfe-angular.md @@ -99,7 +99,7 @@ For both applications, the generator did the following: - Moved the code that is normally in `main.ts` to `bootstrap.ts` - Changed `main.ts` to dynamically import `bootstrap.ts` _(this is required for the Module Federation to correct load versions of shared libraries)_ - Updated the `build` target in the `project.json` to use the `@nx/angular:webpack-browser` executor _(this is required as it supports passing a custom Webpack configuration to the Angular compiler)_ -- Updated the `serve` target to use `@nx/angular:webpack-dev-server` _(this is required as we first need Webpack to build the application with our custom Webpack configuration)_ +- Updated the `serve` target to use `@nx/angular:dev-server` _(this is required as we first need Webpack to build the application with our custom Webpack configuration)_ The key differences reside within the configuration of the Module Federation Plugin within each application's `module-federation.config.js`. diff --git a/docs/shared/guides/use-environment-variables-in-angular.md b/docs/shared/guides/use-environment-variables-in-angular.md index 5477bb5376..1bcc4017be 100644 --- a/docs/shared/guides/use-environment-variables-in-angular.md +++ b/docs/shared/guides/use-environment-variables-in-angular.md @@ -54,7 +54,7 @@ Next, update the `build` and `serve` targets (in `project.json` or `angular.json }, "serve": { // NOTE: use dev-server that supports custom webpack config. - "executor": "@nx/angular:webpack-dev-server" + "executor": "@nx/angular:dev-server" // snip } }