diff --git a/packages/angular/src/generators/setup-mfe/files/webpack/webpack.prod.config.js__tmpl__ b/packages/angular/src/generators/setup-mfe/files/webpack/webpack.prod.config.js__tmpl__ index bbf8e1f9d4c69..15b2b43dbc6ae 100644 --- a/packages/angular/src/generators/setup-mfe/files/webpack/webpack.prod.config.js__tmpl__ +++ b/packages/angular/src/generators/setup-mfe/files/webpack/webpack.prod.config.js__tmpl__ @@ -1 +1,15 @@ -module.exports = require('./webpack.config'); \ No newline at end of file +const { withModuleFederation } = require('@nrwl/angular/module-federation'); +const config = require('./mfe.config'); +module.exports = withModuleFederation({ + ...config, + /* + * Remote overrides for production. + * Each entry is a pair of an unique name and the URL where it is deployed. + * + * e.g. + * remotes: [ + * ['app1', 'https://app1.example.com'], + * ['app2', 'https://app2.example.com'], + * ] + */ +}); \ No newline at end of file