Skip to content
The ClosureCompiler.js Grunt Task
Find file
New pull request
Latest commit 5db57d2 @dcodeIO Postmerge
Failed to load latest commit information.
tasks Postmerge
tests Correctly handle empty output, fixes #4
.gitignore Travis
.travis.yml versioning
Gruntfile.js Fail on errors, fixes #3
Gruntfile.min.js Postmerge
LICENSE First commit
NOTICE First commit Postmerge
package.json Postmerge

The ClosureCompiler.js Grunt Task Build Status

Yet simple, but powerful. Available through npm.


    closurecompiler: {
        minify: {
            files: {
                // Destination: Sources...
                "Gruntfile.min.js": [__filename]
            options: {
                // Any options supported by Closure Compiler, for example:
                "compilation_level": "SIMPLE_OPTIMIZATIONS",

                // Plus a simultaneous processes limit
                "max_processes": 5,

                // And an option to add a banner, license or similar on top
                "banner": "/* hello world! */"

grunt.registerTask('minify', ['closurecompiler:minify']);

Run it: grunt minify

See also: Gruntfile.js

Works like any other Grunt plugin/task. See the ClosureCompiler.js project for detailed information on available options and the Grunt website for everything Grunt.


Apache License, Version 2.0 -

Something went wrong with that request. Please try again.