Ng Build --Prod results in empty small main.js file, website


Topic: Ng Build --Prod results in empty small main.js file, website is blank

dojo44 pro premium asked a year ago

Expected behavior A website would display Actual behavior Webiste shows blank screen Resources (screenshots, code snippets etc.) The generated main*.js file used to be 2G+ which is it own problem, now it is a mere 2MB. Clearly there is something not properly defined in the build. The system works fine with ng serve locally.


Arkadiusz Idzikowski staff commented a year ago

We always test production builds on many projects before release and we didn't encounter similar problem. Please add some more information that will help us to reproduce this issue on our end.

Which version of MDB/Angular do you use? Are there any errors in console? Did you configure your project as explained in our quick start guide?

https://mdbootstrap.com/docs/angular/getting-started/quick-start/


Please insert min. 20 characters.
Status

Open

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: Angular
  • MDB Version: 8.10.1
  • Device: PC
  • Browser: Chrome
  • OS: Win 10
  • Provided sample code: No
  • Provided link: No