首页 > 解决方案 > Laravel 错误资源解释为样式表,但使用 MIME 类型 text/html 传输

问题描述

请我在一年前托管了这个 laravel 网站,一切正常。突然间,我的网站拒绝加载我的样式,请问我该如何解决这个问题。在控制台上,我收到此错误。网址是:https ://springbedspetroleumltd.com

Resource interpreted as Stylesheet but transferred with MIME type text/html: "<URL>".
(index):8 Resource interpreted as Stylesheet but transferred with MIME type text/html: "https://springbedspetroleumltd.com/frontend/css/bootstrap.css".
(index):9 Resource interpreted as Stylesheet but transferred with MIME type text/html: "https://springbedspetroleumltd.com/frontend/plugins/revolution/css/settings.css".
(index):10 Resource interpreted as Stylesheet but transferred with MIME type text/html: "https://springbedspetroleumltd.com/frontend/plugins/revolution/css/layers.css".
(index):11 Resource interpreted as Stylesheet but transferred with MIME type text/html: "https://springbedspetroleumltd.com/frontend/plugins/revolution/css/navigation.css".
(index):13 Resource interpreted as Stylesheet but transferred with MIME type text/html: "https://springbedspetroleumltd.com/frontend/css/responsive.css".
(index):15 Resource interpreted as Stylesheet but transferred with MIME type text/html: "https://springbedspetroleumltd.com/frontend/css/style.css".

请问有人可以帮我吗?

标签: csslaravelfrontendlaravel-mix

解决方案


推荐阅读