diff --git a/Gemfile b/Gemfile index f5beb48c..23d1aa5a 100644 --- a/Gemfile +++ b/Gemfile @@ -9,7 +9,7 @@ gem "bootsnap", require: false gem "cloudinary", require: false gem "factory_bot_rails" gem "friendly_id" -gem "graphiql-rails" +gem "graphiql-rails", "~> 1.4.11" gem "graphql" gem "httparty" gem "icalendar" diff --git a/Gemfile.lock b/Gemfile.lock index 016756b7..c4468abd 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -119,7 +119,7 @@ GEM activerecord (>= 4.0.0) globalid (0.4.2) activesupport (>= 4.2.0) - graphiql-rails (1.7.0) + graphiql-rails (1.4.11) railties sprockets-rails graphql (1.9.4) @@ -368,7 +368,7 @@ DEPENDENCIES erb_lint factory_bot_rails friendly_id - graphiql-rails + graphiql-rails (~> 1.4.11) graphql httparty icalendar diff --git a/config/environments/production.rb b/config/environments/production.rb index bf109eac..266a1215 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -23,7 +23,10 @@ config.public_file_server.enabled = ENV["RAILS_SERVE_STATIC_FILES"].present? # Compress JavaScripts and CSS. - config.assets.js_compressor = :uglifier + # config.assets.js_compressor = :uglifier + # In the future, this next line should be removed. + # https://github.com/rmosolgo/graphiql-rails/issues/58 + config.assets.js_compressor = Uglifier.new(harmony: true) # config.assets.css_compressor = :sass # Do not fallback to assets pipeline if a precompiled asset is missed.