less-connect-middleware
Serve Less files directly to tha browser
Last updated 3 months ago by kevinjamesus86 .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install less-connect-middleware 
SYNC missed versions from official npm registry.

less connect middleware

Build Status

'use strict';

const http = require('http');
const connect = require('connect');
const serveLess = require('less-connect-middleware');

const app = connect();

// Set it up
app.use(
    serveLess({
        // The base (or root) directory from which files will be served
        root: process.cwd(),
        less: {
            // Specifies directories to scan for @import directives when parsing.
            // Default value is the directory of the source file, which is probably what you want
            paths: []
        },
        // See https://github.com/postcss/autoprefixer for more options
        autoprefixer: {
            // Browser queries for vendor prefixing CSS
            // https://github.com/ai/browserslist
            browsers: [
                'ie 9-11',
                'defaults'
            ]
        }
    })
);

// Press go
http.createServer(app).listen(3000);

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 21
Dependencies (7)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |