-
-
Save chevinbrown/a818a551d6a7e48c095806098c5cfd2a to your computer and use it in GitHub Desktop.
Closure compiler for a Rails 3 app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'closure-compiler' | |
config.assets.js_compressor = Closure::Compiler.new(compilation_level: 'SIMPLE_OPTIMIZATIONS', language_in: 'ECMASCRIPT5') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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