2019-08-14 09:48:44 +00: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'
|
|
|
|
|
2019-08-19 08:19:57 +00:00
|
|
|
# Add additional assets to the asset load path.
|
2019-08-14 09:48:44 +00:00
|
|
|
# Rails.application.config.assets.paths << Emoji.images_path
|
2019-08-19 08:19:57 +00:00
|
|
|
# Add Yarn node_modules folder to the asset load path.
|
|
|
|
Rails.application.config.assets.paths << Rails.root.join('node_modules')
|
2019-08-14 09:48:44 +00:00
|
|
|
|
|
|
|
# Precompile additional assets.
|
2019-08-19 08:19:57 +00: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 )
|
2020-06-18 09:47:45 +00:00
|
|
|
Rails.application.config.assets.precompile += %w[dashboardChart.js]
|
2020-09-01 06:09:18 +00:00
|
|
|
|
|
|
|
# to take care of fonts in assets pre-compiling
|
|
|
|
# Ref: https://stackoverflow.com/questions/56960709/rails-font-cors-policy
|
|
|
|
Rails.application.config.assets.precompile << /\.(?:svg|eot|woff|ttf|woff2)$/
|