Middleware for minify.
Install
npm i mollify --save
How to use?
const mollify = require('mollify');
const http = require('http');
const express = require('express');
const app = express();
const server = http.createServer(app);
const port = 1337;
const ip = '0.0.0.0';
app.use(mollify({
dir: __dirname,
is: true, // default
}));
app.use(express.static(__dirname));
server.listen(port, ip);
License
MIT