Topic: Ng Build --Prod results in empty small main.js file, website is blank
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.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Open
Specification of the issue
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: 8.10.1
- Device: PC
- Browser: Chrome
- OS: Win 10
- Provided sample code: No
- Provided link: No
Tags
Related topics
Arkadiusz Idzikowski staff commented 5 years 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/