mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 06:24:48 +08:00
force recompilation of css assets
This commit is contained in:
@ -48,8 +48,13 @@ class Stylesheet::Manager
|
||||
themes << nil
|
||||
themes.each do |key,name|
|
||||
[:desktop, :mobile, :desktop_rtl, :mobile_rtl].each do |target|
|
||||
theme_key = key || SiteSetting.default_theme_key
|
||||
cache_key = "#{target}_#{theme_key}"
|
||||
|
||||
STDERR.puts "precompile target: #{target} #{name}"
|
||||
stylesheet_link_tag(target, nil, key)
|
||||
builder = self.new(target, theme_key)
|
||||
builder.compile(force: true)
|
||||
cache[cache_key] = nil
|
||||
end
|
||||
end
|
||||
nil
|
||||
|
Reference in New Issue
Block a user