I upgraded an Angular v11 project to Angular v12 by following the Angular Upgrade guide.
The project makes use of Angular Material and Bootstrap libraries. The styles are breaking when I make a build using --configuration production flag
I see that this is a prevailing issue wrt Angular
- I tried using the
--extract-css falseflag. In this case I realized that the styles of styles.scss was not getting applied - I have also tried migrating the styles.scss using https://sass-lang.com/documentation/cli/migrator#installation. But didn't work
Angular v12 styles.80d2e538149d4fe8acb1.css

The configuration used in angular.json is as below
"styles": [
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
"./node_modules/bootstrap/dist/css/bootstrap.min.css",
"./node_modules/material-design-icons-iconfont/dist/material-design-icons.css",
"src/styles.scss"
]
As observed, the 3rd party styles are missing in the Angular v12 build. Can somebody share the details as to how they resolved it? Thanks in advance
