Stylesheet not loaded because of MIME-type

前端 未结 30 2473
猫巷女王i
猫巷女王i 2020-11-22 07:29

I\'m working on a website that uses gulp to compile and browser sync to keep the browser synchronised with my changes.

The gulp task compiles everything

30条回答
  •  终归单人心
    2020-11-22 08:10

    In most cases, this could be simply the CSS file path is wrong. So the web server returns status: 404 with some Not Found content payload of html type.

    The browser follows this (wrong) path from tag with the intention of applying CSS styles. But the returned content type contradicts so that it logs an error.

提交回复
热议问题