Skip to content

andreypopp/dcompose-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dcompose-middleware

Connect/Express middleware for dcompose bundler.

Installation

% npm install dcompose-middleware

Usage

var dcompose = require('dcompose'),
    serve    = require('dcompose-middleware'),
    express  = require('express');

app = express();
app.use('/assets', serve(dcompose('./app.js')));
app.listen(3000);

Now

% curl http://localhost:3000/assets/bundle.js
% curl http://localhost:3000/assets/bundle.css

About

Connect/express middleware for dcompose

Resources

License

Stars

Watchers

Forks

Packages

No packages published