mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 22:58:30 +08:00
force recompilation of css assets
This commit is contained in:
parent
8cd9afcfad
commit
bbecc65737
|
@ -48,8 +48,13 @@ class Stylesheet::Manager
|
||||||
themes << nil
|
themes << nil
|
||||||
themes.each do |key,name|
|
themes.each do |key,name|
|
||||||
[:desktop, :mobile, :desktop_rtl, :mobile_rtl].each do |target|
|
[: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}"
|
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
|
||||||
end
|
end
|
||||||
nil
|
nil
|
||||||
|
|
Loading…
Reference in New Issue
Block a user