Remove uglifier

We don't use this since moving to webpacker, neither does it support ES6
This commit is contained in:
Karina Kwiatek 2022-07-03 19:32:42 +02:00
parent 8c140bc0a9
commit 4e59b0a3d6
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,6 @@ gem "pg"
gem "jbuilder", "~> 2.10" gem "jbuilder", "~> 2.10"
gem "sass-rails", "~> 5.0" gem "sass-rails", "~> 5.0"
gem "turbolinks", "~> 2.5.3" gem "turbolinks", "~> 2.5.3"
gem "uglifier", ">= 1.3.0"
gem "bcrypt", "~> 3.1.7" gem "bcrypt", "~> 3.1.7"

View File

@ -1,5 +1,6 @@
Rails.application.configure do Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb. # Settings specified here will take precedence over those in config/application.rb.
config.asset_source = :webpacker
# Code is not reloaded between requests. # Code is not reloaded between requests.
config.cache_classes = true config.cache_classes = true
@ -19,7 +20,7 @@ Rails.application.configure do
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
# Compress JavaScripts and CSS. # Compress JavaScripts and CSS.
config.assets.js_compressor = Uglifier.new(harmony: true) # config.assets.js_compressor = :uglifier
# config.assets.css_compressor = :sass # config.assets.css_compressor = :sass
# Do not fallback to assets pipeline if a precompiled asset is missed. # Do not fallback to assets pipeline if a precompiled asset is missed.