Retrospring/config/initializers/assets.rb

22 lines
1006 B
Ruby
Raw Normal View History

2014-08-01 02:23:47 -07:00
# Be sure to restart your server when you modify this file.
# Version of your assets, change this if you want to expire all your assets.
Rails.application.config.assets.version = '1.0'
2022-01-11 17:24:38 -08:00
# Add additional assets to the asset load path.
2020-04-18 15:59:18 -07:00
# Rails.application.config.assets.paths << Emoji.images_path
2014-08-01 02:23:47 -07:00
# Precompile additional assets.
2022-01-11 17:24:38 -08:00
# application.js, application.css, and all non-JS/CSS in the app/assets
# folder are already added.
# Rails.application.config.assets.precompile += %w( admin.js admin.css )
# Enable Rails to resolve url() asset paths to digested assets
Rails.application.config.assets.resolve_assets_in_css_urls = true
# Include node assets in asset loading
# This is IMPORTANT because in either environment (especially local) external assets
# will not be found/resolved otherwise
2023-01-03 07:15:39 -08:00
Rails.application.config.assets.paths << Rails.root.join("node_modules/@fortawesome/fontawesome-free/webfonts")
Rails.application.config.assets.paths << Rails.root.join("node_modules/@fontsource/lexend/files")