@node-minify/google-closure-compiler

google closure compiler plugin for @node-minify

Usage no npm install needed!

<script type="module">
  import nodeMinifyGoogleClosureCompiler from 'https://cdn.skypack.dev/@node-minify/google-closure-compiler';
</script>

README

node-minify

A very light minifier Node.js module.


Build Status

google-closure-compiler

google-closure-compiler is a plugin for node-minify

It allow you to compress JavaScript files.

Installation

npm install @node-minify/core @node-minify/google-closure-compiler

Usage

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) {}
});

Documentation

Visit https://node-minify.2clics.net/compressors/gcc.html for full documentation

License

MIT