From 95038856c9ddeee7d0d8083a75006a5e3492dd54 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Wed, 30 Jun 2021 16:47:07 +0800 Subject: [PATCH] DEV: Improve output of `Stylesheet::Mananger.precompile_theme_css`. --- lib/stylesheet/manager.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/stylesheet/manager.rb b/lib/stylesheet/manager.rb index ec48eee3b7f..9890259ba10 100644 --- a/lib/stylesheet/manager.rb +++ b/lib/stylesheet/manager.rb @@ -78,21 +78,22 @@ class Stylesheet::Manager target: target, theme: theme, manager: manager ) - $stderr.puts "precompile target: #{target} #{theme.name}" next if theme.component && !scss_checker.has_scss(theme.id) + $stderr.puts "precompile target: #{target} #{theme.name}" builder.compile(force: true) compiled << "#{target}_#{theme.id}" end end 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| - $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( target: COLOR_SCHEME_STYLESHEET, - theme: manager.get_theme(theme_id), + theme: theme, color_scheme: scheme, manager: manager ).compile(force: true)