mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 19:29:34 +08:00
DEV: Raise exception for deprecations in core stylesheets (#31894)
This commit is contained in:
@ -48,6 +48,7 @@ class Stylesheet::Manager::Builder
|
||||
color_scheme_id: @color_scheme&.id,
|
||||
load_paths: load_paths,
|
||||
dark: @dark,
|
||||
strict_deprecations: %i[desktop mobile admin wizard].include?(@target),
|
||||
)
|
||||
rescue SassC::SyntaxError, SassC::NotRenderedError, DiscourseJsProcessor::TranspileError => e
|
||||
if Stylesheet::Importer::THEME_TARGETS.include?(@target.to_s)
|
||||
|
Reference in New Issue
Block a user