Categories
express less node.js

express.js less compiler: can not get work

app.js:

app.use(express.compiler({ src: __dirname + '/public', enable: ['less']}));
app.use(express.static(__dirname + '/public'));

In my jade view:

link(rel="stylesheet", type="text/css", href="https://www.faqcode4u.com/app/stylesheets/app.less)

I”ve got less file in:
public/app/stylesheets/app.less

When I request the page I’ve got in html head:

<link href="https://www.faqcode4u.com/app/stylesheets/app.less" type="text/css" rel="stylesheet">

And noting in server console.

1) So Why does express even doesn’t try to compile app.less? Should it?

2) If everything right: should link in htm be

<link href="https://www.faqcode4u.com/app/stylesheets/**app.less**" ... >

or express should change the file’s extension while render?

<link href="https://www.faqcode4u.com/app/stylesheets/**app.css**" ... >

?