0.0.5 • Published 9 years ago

express-onefile v0.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

ExpressOnefile NPM version Build Status Coverage Status

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

License

MIT

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

0.0.1-beta

9 years ago

0.0.1-alpha

9 years ago

0.0.0

9 years ago

0.0.0-beta

9 years ago

0.0.0-alpha

9 years ago