diff --git a/Gemfile b/Gemfile index bdeed474f8..31fa1edcf1 100644 --- a/Gemfile +++ b/Gemfile @@ -115,7 +115,6 @@ gem 'coffee-rails', '~> 5.0.0' gem 'mini_racer', '0.4.0' -gem 'uglifier', '>= 1.0.3' gem 'angular_rails_csrf' diff --git a/Gemfile.lock b/Gemfile.lock index 318fe71e73..8ea9e69ef0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -640,8 +640,6 @@ GEM ttfunk (1.7.0) tzinfo (2.0.5) concurrent-ruby (~> 1.0) - uglifier (4.2.0) - execjs (>= 0.3.0, < 3) unicode-display_width (2.3.0) uniform_notifier (1.16.0) valid_email2 (4.0.4) @@ -809,7 +807,6 @@ DEPENDENCIES test-prof test-unit (~> 3.5) timecop - uglifier (>= 1.0.3) valid_email2 vcr view_component diff --git a/config/environments/production.rb b/config/environments/production.rb index 8fbb157511..a097aefd29 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -51,12 +51,6 @@ Openfoodnetwork::Application.configure do # Enable serving of images, stylesheets, and JavaScripts from an asset server # config.action_controller.asset_host = "http://assets.example.com" - # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added) - # config.assets.precompile += %w( search.js ) - - require 'uglifier' - config.assets.js_compressor = Uglifier.new(mangle: false, harmony: true) - # Disable delivery errors, bad email addresses will be ignored # config.action_mailer.raise_delivery_errors = false diff --git a/config/environments/staging.rb b/config/environments/staging.rb index 8fbb157511..a097aefd29 100644 --- a/config/environments/staging.rb +++ b/config/environments/staging.rb @@ -51,12 +51,6 @@ Openfoodnetwork::Application.configure do # Enable serving of images, stylesheets, and JavaScripts from an asset server # config.action_controller.asset_host = "http://assets.example.com" - # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added) - # config.assets.precompile += %w( search.js ) - - require 'uglifier' - config.assets.js_compressor = Uglifier.new(mangle: false, harmony: true) - # Disable delivery errors, bad email addresses will be ignored # config.action_mailer.raise_delivery_errors = false