Skip to content

Commit 3aa40f2

Browse files
committed
Disable js_compressor and css_compressor
1 parent a358195 commit 3aa40f2

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

react_on_rails_pro/Gemfile.development_dependencies

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ gem "pg"
2020
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
2121
gem "turbolinks"
2222
gem "sqlite3", "~> 1.4"
23-
gem "uglifier"
2423
gem "jquery-rails"
2524
gem "sprockets"
2625
gem "sass-rails"

react_on_rails_pro/Gemfile.lock

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,6 @@ GEM
414414
turbolinks-source (5.2.0)
415415
tzinfo (2.0.6)
416416
concurrent-ruby (~> 1.0)
417-
uglifier (4.2.0)
418-
execjs (>= 0.3.0, < 3)
419417
unicode-display_width (2.5.0)
420418
uri (1.0.3)
421419
useragent (0.16.11)
@@ -493,7 +491,6 @@ DEPENDENCIES
493491
sprockets
494492
sqlite3 (~> 1.4)
495493
turbolinks
496-
uglifier
497494
web-console
498495
webdrivers (= 5.3.0)
499496
webmock

react_on_rails_pro/spec/dummy/Gemfile.lock

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,6 @@ GEM
450450
turbolinks-source (5.2.0)
451451
tzinfo (2.0.6)
452452
concurrent-ruby (~> 1.0)
453-
uglifier (4.2.0)
454-
execjs (>= 0.3.0, < 3)
455453
unicode-display_width (2.5.0)
456454
uri (1.0.3)
457455
useragent (0.16.11)
@@ -542,7 +540,6 @@ DEPENDENCIES
542540
sprockets
543541
sqlite3 (~> 1.4)
544542
turbolinks
545-
uglifier
546543
web-console
547544
webdrivers (= 5.3.0)
548545
webmock

react_on_rails_pro/spec/dummy/config/environments/production.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
config.public_file_server.enabled = true
2020

2121
# Compress JavaScripts and CSS.
22-
config.assets.js_compressor = Uglifier.new(harmony: true)
23-
config.assets.css_compressor = :csso
22+
# JS/CSS compression handled by Webpack/Shakapacker, not needed for Sprockets
23+
# config.assets.js_compressor = Uglifier.new(harmony: true)
24+
# config.assets.css_compressor = :csso
2425

2526
# Do not fallback to assets pipeline if a precompiled asset is missed.
2627
config.assets.compile = false
@@ -69,7 +70,7 @@
6970
config.active_support.deprecation = :notify
7071

7172
# Use default logging formatter so that PID and timestamp are not suppressed.
72-
config.log_formatter = ::Logger::Formatter.new
73+
config.log_formatter = Logger::Formatter.new
7374

7475
# Use a different logger for distributed setups.
7576
# require 'syslog/logger'

0 commit comments

Comments
 (0)