node-closure
v1.5.1
Published
Converts ec6 to es5 and minimizes not only JavaScripts, but also CSS and HTML under the current directory tree
Downloads
5
Readme
node-closure
Converts ec6 to es5 and minimizes not only JavaScripts, but also CSS and HTML under the current directory tree
Minify all files
require('node-closure').build();
Minify one file
require('node-closure').build('lib.js');
Enable debug
var closure = require('node-closure');
closure.debug = true;
closure.ignore = ['**/node_modules/**', '**/upload/**'];
closure.build();
Set callback
var closure = require('node-closure');
closure.callback = console.log.bind(console);
closure.build();
Installation
npm install -g node-closure