How to check scss

I have a scss file and I will compile it into a css file using scss. The scss to css compiler detects errors in the scss file, but it seems too tolerant. That is, even when I am mistaken in the name of the style attributes, it compiles without errors. Is there a way to make it return an error if there is no style attribute in the scss file that does not exist in css3 or in imported functions? There is also the option to write an invalid value for styles, but I know this is more complicated, and I do not ask for it.

+6
source share
1 answer

There is a Ruby wrapper around the W3C CSS Validator so you can write a simple script to check the css output from scss.

I also found this integration with Compass so if you use Compass to compile your scss, this may be useful. I haven't used this, so I'm not sure how this works, but I had good experience with the W3C CSS Validator .

+1
source

All Articles