I have what I think is a standard .angular-cli.json file. In apps[0] it has:
"styles": [
"styles.css",
"../node_modules/bootstrap/dist/css/bootstrap.min.css"
],
The above works fine with an "ng build" or an "ng serve". However, if I do an "ng build --prod" these two css files are ignored. The way I am getting around this is by using a CDN version of bootstrap.min.css and adding styles.css to a publicly available resource (Azure blog storage) and then referencing them from index.html.
FWIW, if I do an "ng serve --prod" it still works in my localhost/dev environment. But "ng build --prod" does not.
Any ideas where to start?
ng build --porddo you have styles bundle outputed indistfolder ?npm install -g http-serverand then serve thedistfolder withhttp-serverwhat would be outcome of that?. Also can you see if css bundle gets loaded in network tab in dev tools?