DEV: Refactor theme SCSS compilation (#11919)

This commit is contained in:
Penar Musaraj
2021-02-02 13:09:41 -05:00
committed by GitHub
parent f88def5f5b
commit e8b82724fd
12 changed files with 173 additions and 209 deletions

View File

@ -248,8 +248,10 @@ class Stylesheet::Manager
@target,
rtl: rtl,
theme_id: theme&.id,
theme_variables: theme&.scss_variables.to_s,
source_map_file: source_map_filename,
color_scheme_id: @color_scheme&.id
color_scheme_id: @color_scheme&.id,
load_paths: theme&.scss_load_paths
)
rescue SassC::SyntaxError => e
if Stylesheet::Importer::THEME_TARGETS.include?(@target.to_s)