Remove uglifier as JS preprocessor

This commit is contained in:
Sebastian Serth
2021-05-12 17:51:28 +02:00
parent 0b43d8e656
commit d563488c30
3 changed files with 2 additions and 8 deletions

View File

@ -39,7 +39,6 @@ gem 'sorcery' # Causes a deprecation warning in Rails 6.0+, see: https://github.
gem 'telegraf' gem 'telegraf'
gem 'tubesock', git: 'https://github.com/gosukiwi/tubesock', branch: 'patch-1' # Switch to a fork which is compatible with Rails 5 gem 'tubesock', git: 'https://github.com/gosukiwi/tubesock', branch: 'patch-1' # Switch to a fork which is compatible with Rails 5
gem 'turbolinks' gem 'turbolinks'
gem 'uglifier'
gem 'webpacker' gem 'webpacker'
gem 'whenever', require: false gem 'whenever', require: false

View File

@ -140,7 +140,7 @@ GEM
database_cleaner-core (2.0.1) database_cleaner-core (2.0.1)
debug_inspector (1.1.0) debug_inspector (1.1.0)
diff-lcs (1.4.4) diff-lcs (1.4.4)
docile (1.3.5) docile (1.4.0)
docker-api (2.1.0) docker-api (2.1.0)
excon (>= 0.47.0) excon (>= 0.47.0)
multi_json multi_json
@ -149,7 +149,6 @@ GEM
erubi (1.10.0) erubi (1.10.0)
eventmachine (1.2.7) eventmachine (1.2.7)
excon (0.81.0) excon (0.81.0)
execjs (2.8.0)
factory_bot (6.2.0) factory_bot (6.2.0)
activesupport (>= 5.0.0) activesupport (>= 5.0.0)
factory_bot_rails (6.2.0) factory_bot_rails (6.2.0)
@ -475,8 +474,6 @@ GEM
turbolinks-source (5.2.0) turbolinks-source (5.2.0)
tzinfo (2.0.4) tzinfo (2.0.4)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
uglifier (4.2.0)
execjs (>= 0.3.0, < 3)
unf (0.1.4) unf (0.1.4)
unf_ext unf_ext
unf_ext (0.0.7.7) unf_ext (0.0.7.7)
@ -576,7 +573,6 @@ DEPENDENCIES
telegraf telegraf
tubesock! tubesock!
turbolinks turbolinks
uglifier
web-console web-console
webmock webmock
webpacker webpacker

View File

@ -27,8 +27,7 @@ Rails.application.configure do
# Apache or NGINX already handles this. # Apache or NGINX already handles this.
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
# Compress JavaScript and CSS using a preprocessor. # Compress CSS using a preprocessor.
config.assets.js_compressor = Uglifier.new(harmony: true)
# 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.