JavaScript
Clone or download
coderaiser
Latest commit af99f88 Jan 24, 2018

README.md

Mollify License Dependency Status Build Status NPM version

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