Skip to content

Commit 6b6f4ec

Browse files
committed
refactor: remove use of module factory. remove entryComponents
- set up ng serve --prod support
1 parent ec37ff7 commit 6b6f4ec

File tree

4 files changed

+6
-29
lines changed

4 files changed

+6
-29
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ Learn more in the [AngularJS Material Migration Guide](https://material.angularj
2424
- AngularJS referring to any component: `appComponent`
2525
- Angular referring to any component: `app-component`
2626
- ngUpgrade projects that work on StackBlitz, don’t work in the CLI and vice versa.
27-
- Need to provide at least one `entryComponents` for CLI support (not mentioned in
28-
[guide](https://angular.io/guide/upgrade-performance#bootstrapping-with-downgrademodule)).
2927

3028
### Minification-friendly AngularJS Code
3129

angular.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@
3838
{
3939
"replace": "src/environments/environment.ts",
4040
"with": "src/environments/environment.prod.ts"
41-
},
42-
{
43-
"replace": "src/angularjs/bootstrap-module.ts",
44-
"with": "src/angularjs/bootstrap-module-factory.ts"
4541
}
4642
],
4743
"optimization": true,
@@ -72,7 +68,11 @@
7268
"options": {
7369
"browserTarget": "app:build"
7470
},
75-
"configurations": {}
71+
"configurations": {
72+
"production": {
73+
"browserTarget": "app:build:production"
74+
}
75+
}
7676
},
7777
"extract-i18n": {
7878
"builder": "@angular-devkit/build-angular:extract-i18n",
@@ -98,4 +98,4 @@
9898
"cli": {
9999
"analytics": "5ac50125-846d-47d8-ade1-872a23d22523"
100100
}
101-
}
101+
}

src/angular/main-angular.module.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ import {MatExpansionModule} from '@angular/material/expansion';
2222
AppComponent,
2323
VersionStampComponentFacade,
2424
TabsComponentFacade
25-
],
26-
entryComponents: [
27-
AppComponent
2825
]
2926
})
3027
export class MainAngularModule {

src/angularjs/bootstrap-module-factory.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)