Precompile rails assets only when needed