This is an extension for Laravel Elixir, integrating Google's Closure Compiler.
npm install --save elixir-google-compiler
var elixir = require('laravel-elixir');
require('elixir-google-compiler');
elixir(function(mix) {
mix.compile('path/to/file.js', 'dest/folder', {
compilationLevel: 'SIMPLE',
warningLevel: 'VERBOSE',
jsOutputFile: 'output.min.js'
// Even more options
});
});
The options that can be supplied to the compiler are the same as Google's Compiler.