mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 05:30:48 +08:00
FIX: Improve SCSS handling in components (#11963)
- ignores errors when including component SCSS in parent theme - adds support for SCSS `@import`s in components' `color_definitions.scss` files
This commit is contained in:
@ -807,6 +807,13 @@ HTML
|
||||
expect(parent_css).to include("body{background:green}")
|
||||
end
|
||||
|
||||
it "does not fail if child theme has SCSS errors" do
|
||||
child_theme.set_field(target: :common, name: :scss, value: 'p {color: $missing_var;}')
|
||||
child_theme.save!
|
||||
|
||||
parent_css, _parent_map = compiler
|
||||
expect(parent_css).to include("sourceMappingURL")
|
||||
end
|
||||
end
|
||||
|
||||
describe "scss_variables" do
|
||||
|
Reference in New Issue
Block a user