diff --git a/package.json b/package.json index 6909bc2..3c8f34b 100644 --- a/package.json +++ b/package.json @@ -5,9 +5,9 @@ "ng": "ng", "start": "npm run start:shell", "start:shell": "ng serve shell -o --port 5000", - "start:mfe1": "ng serve mfe1 -o --port 3000", + "start:mfe1": "ng serve mfe1 -o --port 3001", "start:all": "concurrently \"npm run start:shell\" \"npm run start:mfe1\" ", - "build:shell": "ng build shell --prod", + "build:shell": "ng build shell --configuration=production", "build:mfe1": "ng build mfe1 --prod", "serve:dist": "concurrently \"serve dist/shell -l 5000 -s\" \"serve dist/mfe1 -l 3000 -s\" ", "build": "npm run build:shell && npm run build:mfe1", diff --git a/projects/shell/src/app/app.component.ts b/projects/shell/src/app/app.component.ts index bfad506..3d4a084 100644 --- a/projects/shell/src/app/app.component.ts +++ b/projects/shell/src/app/app.component.ts @@ -1,4 +1,4 @@ -import { Component, ViewChild, ViewContainerRef, ɵrenderComponent as renderComponent, Inject, Injector, ComponentFactoryResolver } from '@angular/core'; +import { Component } from '@angular/core'; import { AuthLibService } from 'auth-lib'; import { HttpClient } from '@angular/common/http'; diff --git a/projects/shell/src/assets/mf.manifest.json b/projects/shell/src/assets/mf.manifest.json index ad2eff4..fa17d60 100644 --- a/projects/shell/src/assets/mf.manifest.json +++ b/projects/shell/src/assets/mf.manifest.json @@ -1,3 +1,3 @@ { - "mfe1": "http://localhost:3000/remoteEntry.js" -} \ No newline at end of file + "mfe1": "http://localhost:3001/remoteEntry.js" +} diff --git a/projects/shell/src/index.html b/projects/shell/src/index.html index 38d5d42..e8fa984 100644 --- a/projects/shell/src/index.html +++ b/projects/shell/src/index.html @@ -15,27 +15,27 @@ padding-top: 80px; padding-left: 10px; } - + ul { list-style-type: none; margin: 0; padding: 0; overflow: hidden; background-color: #333; - + position: fixed; top: 0; left: 0; width: 100%; } - + li { float: left; height: 50px; margin-top: auto; margin-bottom: auto; } - + li a { display: block; color: white; @@ -44,7 +44,7 @@ text-decoration: none; cursor: pointer; } - + li a:hover { background-color: #111; } @@ -54,7 +54,7 @@