dbservestyl
v0.0.5
Published
Serve .styl files as .css
Downloads
5
Readme
dbservestyl - Serve .styl files as .css
######Example:
"use strict";
const dbservestyl = require('dbservestyl');
const express = require('express');
const path = require('path');
let app = new express();
app.use('/css', function(req, res, next) {
let index = path.join(__dirname, "/www/css");
let fn = dbservestyl(index);
fn(req, res, next);
});
app.use('/', function(req, res, next) {
let index = path.join(__dirname, "/www");
let fn = express.static(index);
fn(req, res, next);
});
app.listen(8080);