A very light minifier Node.js module.
google-closure-compiler
is a plugin for node-minify
It allow you to compress JavaScript files.
npm install @node-minify/core @node-minify/google-closure-compiler
const minify = require('@node-minify/core');
const gcc = require('@node-minify/google-closure-compiler');
minify({
compressor: gcc,
input: 'foo.js',
output: 'bar.js',
callback: function (err, min) {}
});
Visit https://node-minify.2clics.net/compressors/gcc.html for full documentation