Replace deprecated sass-rails gem with sassc-rails. Update Sprockets from 3 to...
Replace deprecated sass-rails gem with sassc-rails. Update Sprockets from 3 to 4. Update FontAwesome from 4 to 5, and adjust all references to FA icons accordingly. Closes DDR-2324.
This update more carefully takes care of dependabot MRs !111 (closed) & !116 (closed) -- it adjusts code that would otherwise break when upgrading.
See this post for more context on updating these gems and associated syntax.
Summary
- Removed (deprecated)
sass-rails
gem & replaced it withsassc-rails
- Updated the
font-awesome-sass
gem from 4 (which depends on the deprecatedsass-rails
) to 5 - Changed all FontAwesome 4 syntax / icon references to 5 (using this guide). Note CSS pseudo-elements also had to be updated, esp. given
font-weight
of900
for solid &400
for regular type icons. See this guide. - Updated Sprockets gem from 3 (max version for
sass-rails
) to 4 - Adjusted top-level asset compilation targets to use Sprockets 4 syntax (esp. see
assets/config/manifest.js
)