This plugin integrates with Grails' resources framework to automatically compress javascript using the Google Closure [compiler] (https://developers.google.com/closure/compiler/).
The current version supports minification and compilation of JavaScript files as part of static resources processing. Other features (such as Linter or CSS processing) of Google Closure Tools are not supported.
-
grails.resources.mappers.closurecompiler.compilationlevel: Controls the compilation level of the compressor. Defaults to SIMPLE_OPTIMIZATIONS. This setting is passed as a string.
-
grails.resources.googleclosurejscompile.includes and .excludes: Controls which files are processed by the compiler. The default setting is to include *.js, and to exclude .min.js.
This plugin is based on the YUI minify resources plugin and Google Closure Compiler.
This plugin is licensed under Apache License, Version 2.0.