I want to do client-side compiling of my less styles for development. But Express does not serve a static file like this:
In Express app.use(express.static(__dirname + '/public'));
The webpage loads fine, except this file returns nothing
<link rel="stylesheet/less" type="text/css" href="styles.less">
The response is:
HTTP/1.1 200 OK
X-Powered-By: Express
Date: Sat, 21 Jan 2012 10:25:18 GMT
Cache-Control: public, max-age=0
Last-Modified: Sat, 21 Jan 2012 10:24:52 GMT
ETag: "396-1327141492000"
Content-Type: application/octet-stream
Accept-Ranges: bytes
Content-Length: 396
Connection: keep-alive
This also returns nothing
<link rel="stylesheet" type="text/css" href="styles.less">
And this also returns nothing
<link rel="stylesheet/less" type="text/css" href="styles.css">
But this works
<link rel="stylesheet" type="text/css" href="styles.css">
How can I do client-side less with express? It works on Apache.
Thanks,