express-onefile
v0.0.5
Published
bower_components compressor middleware
Downloads
10
Readme
ExpressOnefile
Express4 middleware of bower_components compressor
Installation
$ npm install express-onefile --save
API
expressOnefile(options) -> middleware
bower init
# yes, yes yes...
bower install jquery --save
# ...
node app.js
# server running at http://localhost:59798
app.js
var express= require('express');
var onefile= require('express-onefile');
var port= 59798;
var options= {
cwd: process.cwd(),
filename: 'pkgs',
}
var app= express();
app.use(onefile(options));
app.listen(port,function(){
console.log('server running at http://localhost:%s',port);
});
Can you access:
http://localhost:59798/pkgs.js
http://localhost:59798/pkgs.min.js
Related projects
- onefile
- express-onefile
- difficult-http-server