Refused to apply style from 'http://localhost:8899/font_oo1c7zvf1ve/iconfont.css ' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
网上查的是静态路径放服务端环境没办法进行链接但是怎么都不对

解决方案 »

  1.   

    如果你的网站是发布在iis里
    可以通过iis添加mime type类型解决。也可以通过配置文件添加配置项解决:
    <system.webServer>
       ... ...
      <staticContent>
        <remove fileExtension=".css" />
        <mimeMap fileExtension=".css" mimeType="text/html" />
      </staticContent>
    </system.webServer>
      

  2.   

    你这个错误很奇怪,因为.css都是默认就支持,你应该考虑的是谁把它移除了,为什么要移除它!!!
      

  3.   

    这个是用gulp开的监听,html和css单独都可以,但是开了服务之后就没办法链接起来了