diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake index 2daf2ab15c7..57235096c16 100644 --- a/lib/tasks/assets.rake +++ b/lib/tasks/assets.rake @@ -11,6 +11,10 @@ task 'assets:precompile:before' do puts "Purging temp files" `rm -fr #{Rails.root}/tmp/cache` + # Ensure we clear emoji cache before pretty-text/emoji/data.js.es6.erb + # is recompiled + Emoji.clear_cache + if Rails.configuration.assets.js_compressor == :uglifier && !`which uglifyjs`.empty? && !ENV['SKIP_NODE_UGLIFY'] $node_uglify = true end