From 4e59b0a3d605f8e366d390f42dd86c0804225d54 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Sun, 3 Jul 2022 19:32:42 +0200 Subject: [PATCH] Remove uglifier We don't use this since moving to webpacker, neither does it support ES6 --- Gemfile | 1 - config/environments/production.rb | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index 5f2dbfb1..17b8c424 100644 --- a/Gemfile +++ b/Gemfile @@ -11,7 +11,6 @@ gem "pg" gem "jbuilder", "~> 2.10" gem "sass-rails", "~> 5.0" gem "turbolinks", "~> 2.5.3" -gem "uglifier", ">= 1.3.0" gem "bcrypt", "~> 3.1.7" diff --git a/config/environments/production.rb b/config/environments/production.rb index 5e524b72..ba8ee08a 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -1,5 +1,6 @@ Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. + config.asset_source = :webpacker # Code is not reloaded between requests. config.cache_classes = true @@ -19,7 +20,7 @@ Rails.application.configure do config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? # Compress JavaScripts and CSS. - config.assets.js_compressor = Uglifier.new(harmony: true) + # config.assets.js_compressor = :uglifier # config.assets.css_compressor = :sass # Do not fallback to assets pipeline if a precompiled asset is missed.