JavaScript optimizer with Closure Compiler in JS for Brunch files.
npm install closure-compiler-brunchAdds Closure Compiler JS support to brunch.
The Closure Compiler tool can produce highly optimized JavaScript code by static analysis, dead code removal and minification.
This plugin leverages the JavaScript implementation of Closure Compiler, hence _Java is not required_.




npm install --save closure-compiler-brunch
`Important: ES6 required.
node <= 4.X.X not supported without harmony flag. See node green. The optimizations are applied in production builds by default. You can supply
-p flag with your build command. Closure Compiler flags can be passed to the
compiler via config.plugins.closurecompiler object, for example, the default flags are given below:`coffeescript
config =
plugins:
closurecompiler:
compilationLevel: 'SIMPLE'
createSourceMap: yes
`compilationLevel can either be WHITESPACE_ONLY, SIMPLE, or ADVANCED`. The MIT License (MIT)