Skip to content

Add Ability for Leafo\ScssPhp\Server to display SASS errors via a psuedo-element#247

Closed
khamer wants to merge 1 commit intoleafo:masterfrom
imarc:master
Closed

Add Ability for Leafo\ScssPhp\Server to display SASS errors via a psuedo-element#247
khamer wants to merge 1 commit intoleafo:masterfrom
imarc:master

Conversation

@khamer
Copy link
Contributor

@khamer khamer commented Apr 22, 2015

This pull request add a method ->showErrorsAsCSS() to Leafo\ScssPhp\Server that changes how exceptions are handled during SASS compilation. Instead of sending a 500 with plain text, instead valid CSS is returned that creates a psuedo-element in the page containing the error message.

This makes errors in the SASS visible to any HTML page including the compiled CSS, rather than rendering the page as unstyled.

* enables displaying errors as a psuedo element via CSS
@robocoder
Copy link
Collaborator

Thanks! Merged into the develop branch.

@robocoder robocoder closed this Jun 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants