Skip to content

Instantly share code, notes, and snippets.

@nateberkopec
Created October 11, 2012 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nateberkopec/3874102 to your computer and use it in GitHub Desktop.
Save nateberkopec/3874102 to your computer and use it in GitHub Desktop.
Closure compiler for a Rails 3 app
require 'closure-compiler'
config.assets.js_compressor = Closure::Compiler.new(compilation_level: 'SIMPLE_OPTIMIZATIONS', language_in: 'ECMASCRIPT5')
group :assets do
gem 'closure-compiler'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment