Stylesheet not loaded because of MIME-type

前端 未结 30 2890
猫巷女王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 07:50

    In case you using Express with no JS try with:

    app.use(express.static('public'));
    

    As an example, my CSS file is at public/stylesheets/app.css

提交回复
热议问题