Skip to content

Instantly share code, notes, and snippets.

@chevinbrown
Forked from nateberkopec/Gemfile
Created March 13, 2018 22:54
Show Gist options
  • Save chevinbrown/a818a551d6a7e48c095806098c5cfd2a to your computer and use it in GitHub Desktop.
Save chevinbrown/a818a551d6a7e48c095806098c5cfd2a 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