Skip to content

Commit 32a5990

Browse files
docs(README): correct Nx usage typo
LN76 of `README.md` mentions using the Angular CLI to initialize the plugin for an Nx monorepo: ``` ng g @angular-architects/module-federation:init ``` This should use the Nx CLI to run the command: ``` nx g @angular-architects/module-federation:init ``` Failing to do so results in an error: ``` Error: This command is not available when running the Angular CLI outside a workspace. ```
1 parent b066df2 commit 32a5990

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/mf/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ If you start from the scratch, `ng add` will take care of these settings.
7272

7373
### Nx
7474

75-
1. `npm install @angular-architects/module-federation`
76-
2. `ng g @angular-architects/module-federation:init`
75+
1. `npm install --save-dev @angular-architects/module-federation`
76+
2. `nx g @angular-architects/module-federation:init`
7777
3. Adjust the generated `webpack.config.js` file
7878
4. Repeat this for further projects in your workspace (if needed)
7979

0 commit comments

Comments
 (0)