5. turbo-sprockets-rails3
● Speeds up rake assets:precompile by only
recompiling changed assets, based on a hash
of their source files
● Only compiles once to generate both
fingerprinted and non-fingerprinted assets
6. turbo-sprockets-rails3
Benchmark on a small Rails app:
● Uninstalled: 26.993s
● Installed
– first run: 18.525s
– unchanged assets: 9.386s
7. quiet_assets
● Hide asset requests in your Rails logs.
● Lets you focus on SQL queries and rendering
● Just add gem 'quiet_assets' to Gemfile
8. assets_precompile_enforcer
● Raises an exception if an asset is not found in
config.assets.precompile
● Avoid 500 errors in production due to
uncompiled assets
9. Assets in Rails 4
● Much faster, don't need turbo-sprockets-rails3
● Non-digest assets are no longer compiled if
fingerprints enabled
● Source maps support: Easily debug errors in
minified javascript
– http://www.html5rocks.com/en/tutorials/developert
ools/sourcemaps/
– If you give your asset source maps to Errbit, it
could show you where a production error occurred
in the original (unminified) JavaScript