Nx Angular with dynamic module federation doesn't respects webpack.prod.config remotes config #13772
bhanuchhabra7
started this conversation in
Show and Tell
Replies: 1 comment
-
@bhanuchhabra7 Do u resolve this problem? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have created this setup using nx angular dynamic module federation.
host
|
---- app1
---- app2
The host has webpack.prod.config and /assets/module-federation.manifest.json
content of webpack.prod.config
contents of
module-federation.manifest.json
main.ts looks like this:
import { setRemoteDefinitions } from '@nrwl/angular/mf';
then I build all apps using
then I serve application using any server (say IIS or Nginx)
I get this error:

EXPECTATION : when building the host app in production mode, the configuration provided in webpack.prod.config should be respected.
Beta Was this translation helpful? Give feedback.
All reactions