Skip to content

Instantly share code, notes, and snippets.

@amichal
Last active December 12, 2015 03:48
Show Gist options
  • Save amichal/4709388 to your computer and use it in GitHub Desktop.
Save amichal/4709388 to your computer and use it in GitHub Desktop.
#asset pipeline on
config.assets.enabled = true
#dont load the whole damn app and connect to the db to precompile
config.assets.initialize_on_precompile = false
# turn off compression entirely
config.assets.compress = false
#OR for css/js explicitly
# see http://guides.rubyonrails.org/asset_pipeline.html#using-your-own-compressor
class NullCompressor
def compress(string)
string
end
end
config.assets.css_compressor = NullCompressor.new
config.assets.js_compressor = NullCompressor.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment