mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 18:42:45 +08:00
DEV: Improve output of Stylesheet::Mananger.precompile_theme_css
.
This commit is contained in:
parent
a2e0da16a7
commit
95038856c9
|
@ -78,21 +78,22 @@ class Stylesheet::Manager
|
||||||
target: target, theme: theme, manager: manager
|
target: target, theme: theme, manager: manager
|
||||||
)
|
)
|
||||||
|
|
||||||
$stderr.puts "precompile target: #{target} #{theme.name}"
|
|
||||||
next if theme.component && !scss_checker.has_scss(theme.id)
|
next if theme.component && !scss_checker.has_scss(theme.id)
|
||||||
|
$stderr.puts "precompile target: #{target} #{theme.name}"
|
||||||
builder.compile(force: true)
|
builder.compile(force: true)
|
||||||
compiled << "#{target}_#{theme.id}"
|
compiled << "#{target}_#{theme.id}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
theme_color_scheme = ColorScheme.find_by_id(color_scheme_id)
|
theme_color_scheme = ColorScheme.find_by_id(color_scheme_id)
|
||||||
|
theme = manager.get_theme(theme_id)
|
||||||
|
|
||||||
[theme_color_scheme, *color_schemes].compact.uniq.each do |scheme|
|
[theme_color_scheme, *color_schemes].compact.uniq.each do |scheme|
|
||||||
$stderr.puts "precompile target: #{COLOR_SCHEME_STYLESHEET} #{name} (#{scheme.name})"
|
$stderr.puts "precompile target: #{COLOR_SCHEME_STYLESHEET} #{theme.name} (#{scheme.name})"
|
||||||
|
|
||||||
Stylesheet::Manager::Builder.new(
|
Stylesheet::Manager::Builder.new(
|
||||||
target: COLOR_SCHEME_STYLESHEET,
|
target: COLOR_SCHEME_STYLESHEET,
|
||||||
theme: manager.get_theme(theme_id),
|
theme: theme,
|
||||||
color_scheme: scheme,
|
color_scheme: scheme,
|
||||||
manager: manager
|
manager: manager
|
||||||
).compile(force: true)
|
).compile(force: true)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user