fix for emoji precompile

This commit is contained in:
Sam 2013-11-06 22:39:08 +11:00
parent 86a60113a6
commit e5202b19c0
1 changed files with 6 additions and 0 deletions

View File

@ -50,8 +50,14 @@ module Discourse
config.assets.paths += %W(#{config.root}/config/locales) config.assets.paths += %W(#{config.root}/config/locales)
# explicitly precompile any images in plugins ( /assets/images ) path
config.assets.precompile += [lambda do |filename, path|
path =~ /assets\/images/ && !%w(.js .css).include?(File.extname(filename))
end]
config.assets.precompile += ['common.css', 'desktop.css', 'mobile.css', 'admin.js', 'admin.css', 'shiny/shiny.css', 'preload_store.js'] config.assets.precompile += ['common.css', 'desktop.css', 'mobile.css', 'admin.js', 'admin.css', 'shiny/shiny.css', 'preload_store.js']
# Precompile all defer # Precompile all defer
Dir.glob("#{config.root}/app/assets/javascripts/defer/*.js").each do |file| Dir.glob("#{config.root}/app/assets/javascripts/defer/*.js").each do |file|
config.assets.precompile << "defer/#{File.basename(file)}" config.assets.precompile << "defer/#{File.basename(file)}"