Introducing third-party css and js to MIME type in vue project index.html

Refused to apply style from" http://localhost:8081/src/content/loginBackground/css/style.css" because its MIME type ("text/html") is not a supported stylesheet MIME type, and strict MIME checking is enabled

what is the reason for this? How to solve it?

Aug.20,2021

the landlord first confirms whether the file 'http://localhost:8081/src/content/loginBackground/css/style.css' can be viewed directly in the browser. I think it is due to the fact that the file has not been found, and the file access path is the problem.


you add the rel and type attributes and attribute values where you introduce them. This may be due to the misdefinition of this attribute, which is defined as text/html


the backend configures the interface of url as / src/content/loginBackground/css/style.css, and returns the style.css file, because the html file returned from the backend refers to the css file under the domain name. Load as a stand-alone resource

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-7b03a3-2933d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-7b03a3-2933d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?