Topic: Angular prod build problems

Wolfdream free asked 4 years ago


Hello i have some visual problems after production build on Angular, can you help me?

Expected behavior

My buttons and mdb commponents must be rendered normally

Actual behavior

Mdb components are not rendered like expected after prod build (another colors etc.)

Resources (screenshots, code snippets etc.)

In dev mode <-- In dev mode

enter image description here <-- After ng --prod --aot=true

Help me plz :)


Wolfdream free answered 4 years ago


I found the solution, just added this line in production in angular.json: "extractCss": false,



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 9.3.1
  • Device: Laptop
  • Browser: Chrome
  • OS: Ubuntu 18.04
  • Provided sample code: No
  • Provided link: No