I have a small node.js application (my first) that I want to compile its less.js stylesheet at server startup. The point I'm starting with is an example application for jade, where it seems to compile SASS templates when creating a server:
var pub = __dirname + '/public';
var app = express.createServer(
express.compiler({ src: pub, enable: ['sass'] }),
express.staticProvider(pub)
);
I saw this and hoped that it would be as easy as changing sass to a smaller one, but that didn't seem to work.
Is there any other approach? Is there something I'm missing? I can not find the documentation for the .compile method anywhere.
Thank!
source
share