diff --git a/lib/generators/ember-cli/heroku/heroku_generator.rb b/lib/generators/ember-cli/heroku/heroku_generator.rb index c2553a6c..c0eaa420 100644 --- a/lib/generators/ember-cli/heroku/heroku_generator.rb +++ b/lib/generators/ember-cli/heroku/heroku_generator.rb @@ -13,6 +13,16 @@ def copy_setup_heroku_file run "chmod a+x bin/heroku_install" end + def config_js_compressor + production_config = "config/environments/production.rb" + + inject_into_file production_config, before: "end\n" do + <<-RUBY + config.assets.js_compressor = nil + RUBY + end + end + def inject_12factor_gem gem "rails_12factor", group: [:staging, :production] end