2014-08-01 02:23:47 -07:00
|
|
|
# Be sure to restart your server when you modify this file.
|
|
|
|
|
2020-04-25 04:02:20 -07:00
|
|
|
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.
|
2015-02-03 08:31:04 -08:00
|
|
|
Rails.application.config.assets.precompile += %w( moderation.js )
|
2020-04-25 04:02:20 -07:00
|
|
|
Rails.application.config.assets.precompile += %w( i18n.js )
|