pugjs(jade) template engine loading css file

前端 未结 5 1592
南方客
南方客 2020-12-25 11:30

I\'ve been searching in the examples on the GitHub but I couldn\'t find how to load a simple css file into my layout. My first thought was doing something like this li

5条回答
  •  太阳男子
    2020-12-25 12:10

    if you're using Jade with connect-assets, you can just use:

    != css('stylesheetName')
    

    where stylesheetName.css is in your assets/css/ directory.

提交回复
热议问题