Node.js - express - jade - compile SASS/LESS

前端 未结 5 1677
忘了有多久
忘了有多久 2021-01-31 12:21

Anyone have a really newbie guide to nodejs - express - SASS/LESS? I have not been able to get this working. The example I have now is a bareboned as possible..

5条回答
  •  时光取名叫无心
    2021-01-31 12:43

    Your setup is the standard setup for readymade. Make sure that less compiler is installed on your system though.

    npm install lessjs readymade

    And then add the following to your server.js

    app.use(require('readymade').middleware({root: "public"}));

提交回复
热议问题