FIX: Do not include theme variables in plugin SCSS, and fix register_css

This commit is contained in:
David Taylor
2019-09-16 17:06:34 +01:00
parent 4a11e7ee56
commit 081c36a459
6 changed files with 112 additions and 66 deletions

View File

@@ -168,7 +168,7 @@ class Stylesheet::Manager
source_map_file: source_map_filename
)
rescue SassC::SyntaxError => e
if %w{embedded_theme mobile_theme desktop_theme}.include?(@target.to_s)
if Importer::THEME_TARGETS.include?(@target.to_s)
# no special errors for theme, handled in theme editor
["", nil]
else