Middleware for ExpressJS, uses uglify-js and uglifycss from NPM. Implements a caching mechanism. Super efficient all-in-one minifying for NodeJS.
npm install mineverythingjavascript
var express = require('express');
var mineverything = require('mineverything');
var app = express();
app.use('/js', mineverything({ sourcePath: 'web/js', type: 'js' }));
// http://localhost/js/anyfile.js will be automatically served as minified.
app.use('/css', mineverything({ sourcePath: 'web/css', type: 'css' }));
// http://localhost/css/anyfile.css will be automatically served as minified.
app.listen(80);
`
$3
`javascript
mineverything(options); // returns middleware
``