I have an angular 8 application that I have developed and the CSS for all components are in each component's corresponding.
When I run ng serve all CSS renders correctly where I want it to.
However anytime I run ng build --prod to prepare files for hosting after deploying those files to my url, every single component is used in by 10%-20% this throws off all my divs and styling and causes a terrible user experience.
I ran ng build --prod --extractCss=false then deployed those files and the same issue happened.
Is there anything anyone can suggest to either get the ng build --prod command to function like ng serve with certain flags or a path issue with css that I can try to fix.
Any help is greatly appreciated!
UPDATE: just ran "ng build --prod --aot=false --output-hashing=media --sourceMap=true --extract-css=false --buildOptimizer=false"
And that still didn't fix the issue. It's almost like the CSS is just zooming in by 10%, which is enough to throw off all my divs, padding etc.
EXAMPLE: On a page that has no scroll feature when run using ng serve, after running the ng buld --prod command from above including all the flags, the page now has the ability scroll