Retrospring/config/initializers/assets.rb

20 lines
784 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.
Rails.application.config.assets.configure do |env|
env.cache = Sprockets::Cache::FileStore.new(
ENV.fetch("SPROCKETS_CACHE", "#{env.root}/tmp/cache/assets"),
Rails.application.config.assets.cache_limit,
env.logger
)
end
2014-08-01 02:23:47 -07:00
# Version of your assets, change this if you want to expire all your assets.
Rails.application.config.assets.version = '1.0'
2020-04-18 15:59:18 -07:00
# Add additional assets to the asset load path
# Rails.application.config.assets.paths << Emoji.images_path
2014-08-01 02:23:47 -07:00
# Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
Rails.application.config.assets.precompile += %w( moderation.js )
Rails.application.config.assets.precompile += %w( i18n.js )