Skip to content

Commit

Permalink
Use sprockets version 3.7.2
Browse files Browse the repository at this point in the history
Various suggestions to downgrade sprockets to fix a segfault crash:

sass/sassc-ruby#207
sass/sassc-rails#122
rails/sprockets#633

We'll see if that fixes it for us.

Refs: #2872
  • Loading branch information
shaun-technovation committed Aug 6, 2021
1 parent 45a6c33 commit 5a90b12
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 25 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ gem "webpacker", "~> 5.x"
gem "cocoon", "~> 1.2"

gem "sass-rails", "~> 6.0"
gem "sprockets", "3.7.2"
gem "normalize-rails", "~> 4.1"

gem "rails-i18n", "~> 6.0.0"
Expand Down
3 changes: 2 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ GEM
spring-watcher-listen (2.0.1)
listen (>= 2.7, < 4.0)
spring (>= 1.2, < 3.0)
sprockets (4.0.2)
sprockets (3.7.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.2)
Expand Down Expand Up @@ -605,6 +605,7 @@ DEPENDENCIES
simple_form (~> 5.0)
spring (~> 2.0)
spring-watcher-listen (~> 2.0)
sprockets (= 3.7.2)
standard
textacular (~> 5.1)
timecop (~> 0.9)
Expand Down
23 changes: 0 additions & 23 deletions app/assets/config/manifest.js

This file was deleted.

27 changes: 26 additions & 1 deletion config/initializers/assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,29 @@
# Rails.application.config.assets.paths << Emoji.images_path

# Precompile additional assets.
Rails.application.config.assets.precompile = ["manifest.js"]
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
Rails.application.config.assets.precompile += %w(
email.css

public.css
admin.css
chapter_ambassador.css
student.css
mentor.css
judge.css

printable_scores.css

public.js
admin.js
chapter_ambassador.js
student.js
mentor.js
judge.js

location-details.js

location-based-search.js
text-based-search.js
toggle-based-search.js
)

0 comments on commit 5a90b12

Please sign in to comment.