Angular prod build problems


Topic: Angular prod build problems

Wolfdream asked 5 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 answered 5 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
  • User: 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