Gulp plugin for Google Closure Compiler that integrates the Closure Compiler Java-based minification and optimization into Gulp build pipelines. Version 0.4.0 (latest) is a stable release with no active development since 2016. It provides SIMPLE and ADVANCED optimization modes, supports custom compiler flags, tiered compilation, and maxBuffer configuration. Unlike alternatives like gulp-google-closure-compiler, this plugin requires a local compiler.jar and does not use the npm-based compiler distribution.
npm install gulp-closure-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic Gulp task using SIMPLE optimization with a local closure-compiler.jar.
Download compiler.jar from https://dl.google.com/closure-compiler/compiler-latest.zip and set compilerPath.
Provide externs for external APIs and set closure_entry_point as the main entry.
Migrate to gulp-google-closure-compiler or use the official npm closure-compiler package.
Set maxBuffer option to a higher value in kilobytes.
Ensure JDK is installed and set tieredCompilation: true only if needed.
Install Java JRE/JDK and ensure 'java' command is available.
Pass maxBuffer option: maxBuffer: 2000 for 2MB.
Run 'npm install gulp --save-dev'.