Upon recently updating my project from Angular 11 to 12, I decided to do a production build for the first time today. During this process, I came across a warning stating "unmatched pseudo-class :lang". After some research, I stumbled upon a thread on mdbootstrap.com where a member of their team suggested a solution:
Instead of setting "optimization":true
in angular.json, they recommended using the following configuration:
"optimization": {
"scripts": true,
"styles": {
"minify": true,
"inlineCritical": false
},
"fonts": true
}
Although I'm not entirely sure about the specifics of this change, implementing it successfully resolved the warning message.
Check out the thread on Material Design for Bootstrap for more information.