mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: ensure we clear emoji cache before recompilation
This commit is contained in:
@@ -11,6 +11,10 @@ task 'assets:precompile:before' do
|
|||||||
puts "Purging temp files"
|
puts "Purging temp files"
|
||||||
`rm -fr #{Rails.root}/tmp/cache`
|
`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']
|
if Rails.configuration.assets.js_compressor == :uglifier && !`which uglifyjs`.empty? && !ENV['SKIP_NODE_UGLIFY']
|
||||||
$node_uglify = true
|
$node_uglify = true
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user