From e5202b19c0f0a688be064e1d67c357ab9ca00242 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 6 Nov 2013 22:39:08 +1100 Subject: [PATCH] fix for emoji precompile --- config/application.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/application.rb b/config/application.rb index d716593bda8..040cb91338c 100644 --- a/config/application.rb +++ b/config/application.rb @@ -50,8 +50,14 @@ module Discourse 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'] + # Precompile all defer Dir.glob("#{config.root}/app/assets/javascripts/defer/*.js").each do |file| config.assets.precompile << "defer/#{File.basename(file)}"