This package is deprecated. Use closure-gun instead.
This gets around the long startup time of Google Closure Compiler using Nailgun, which runs a single java process in the background and keeps all of the classes loaded.
- Required:
gcc
andmvn
- Supported environment: Mac OS and Linux
$ npm install fast-closure-compiler2
$ fastclosure --js script.js --js_output_file script.min.js
Folked because the original fast-closure-compiler is not maintained.
The advantages are:
- Support latest Closure Compiler and Nailgun
- Support Mac OS 10.9 and 10.10
- Support Linux environment in addition to Mac OS
- Expose
fastclosure
as global command instead ofclosure
MIT License: Teppei Sato <[email protected]>