friends, I've spent the whole day looking for the solution to this but I haven't been able to fix it. I get this when I build it for production, in development mode (with no minification and stuff) it works well in localhost, but when I get my files in the dist folder and upload them to hosting server I get this error:
Refused to apply style from
'<URL>'
because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
I stopped using CDNs that have comments at the beginning, and downloader the code and saved it locally and removed all comments. (The most accepted answer here is that comments at the beginning mess up everything when the minification process occurs, but even doing that, I still get the error)
Any help will be extremely appreciated. Thanks.