A simple, one step, Grunt task for Google Closure Compiler
This plugin requires Grunt
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-simple-closure-compiler --save-dev
In your project's Gruntfile, add a section named
closure to the data object passed into
The path to the input file (or files) that will be compiled.
The path to the output file.
The compilation level that should be used when compiling .js files. Applicable values are:
In this example, the file foo.js will be compiled and output to foo.min.js using simple optimization.
Latest version of closure compiler added 2013/10/23.