The problem with the patch is that you're setting to sass and uglifier as dependencies for Rails, we prefer to set these settings that are optional through plugins (e.g [sass-rails](https://github.com/rails/sass-rails/blob/master/lib/sass/rails/railtie.rb#L68)) or through the default [configuration files on the projects](https://github.com/rails/rails/blob/master/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt#L27)