Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nthx/3097821 to your computer and use it in GitHub Desktop.
Save nthx/3097821 to your computer and use it in GitHub Desktop.
Production env for compressing Javascript, but still making it readabale
config.assets.compress = true
require 'uglifier'
config.assets.js_compressor = Uglifier.new(
{:beautify=>true,
:beautify_options =>
{:indent_level => 2,
:indent_start => 0,
:space_colon => false}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment