File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 149149 "production" : {
150150 "target" : " first-mf:esbuild:production"
151151 },
152+ "demo" : {
153+ "target" : " first-mf:esbuild:production" ,
154+ "baseHref" : " /mfe-angular/first-mf/"
155+ },
152156 "development" : {
153157 "target" : " first-mf:esbuild:development" ,
154158 "dev" : true
Original file line number Diff line number Diff line change 1717 "build:all" : " concurrently \" npm run build:shell\" \" npm run build:first-mf\" \" npm run build:template-editor\" " ,
1818 "serve:all" : " concurrently \" npm run serve:shell\" \" npm run serve:first-mf\" \" npm run serve:template-editor\" " ,
1919
20- "build:all:demo" : " concurrently \" ng build shell --configuration=demo\" \" ng build first-mf --base-href /mfe-angular/first-mf/ \" \" cd projects/template-editor && vite build --mode demo\" "
20+ "build:all:demo" : " concurrently \" ng build shell --configuration=demo\" \" ng build first-mf --configuration=demo \" \" cd projects/template-editor && vite build --mode demo\" "
2121 },
2222 "private" : true ,
2323 "dependencies" : {
Original file line number Diff line number Diff line change 11export const environment = {
22 production : false ,
33 vueRemoteEntry : '/mfe-angular/template-editor/assets/remoteEntry.js' ,
4+ buildConfig : 'demo' ,
45} ;
Original file line number Diff line number Diff line change 11export const environment = {
22 production : false ,
3- vueRemoteEntry : '/mfe-angular/template-editor /assets/remoteEntry.js' ,
4- // vueRemoteEntry : 'http://localhost:4202/assets/remoteEntry.js ',
3+ vueRemoteEntry : 'http://localhost:4202 /assets/remoteEntry.js' ,
4+ buildConfig : 'default ' ,
55} ;
Original file line number Diff line number Diff line change 11import { initFederation } from '@angular-architects/native-federation' ;
2+ import { environment } from './environments/environment' ;
3+
4+ console . log ( 'Environment:' , environment . buildConfig ) ;
5+
26
37initFederation ( 'federation.manifest.json' )
48 . catch ( err => console . error ( err ) )
You can’t perform that action at this time.
0 commit comments