jaxbot / browserlink.vim

Live browser editing for Vim
MIT License
711 stars 38 forks source link

Added support for scss #10

Closed ghost closed 10 years ago

ghost commented 11 years ago

This adds support for reloading the CSS when an .scss or .sass file is saved. There is a delay before reloading the CSS, to allow the CSS to compile.

The assumption is that Compass, or another compiler is running and will generate the necessary CSS file.

Currently the delay is at 1.5 seconds. This works for me, but it may need to be increased for larger projects / slower computers; it could be decreased for faster computers.

python time.sleep(1.5)
jaxbot commented 11 years ago

I agree that SCSS support is important, but I don't think a race condition is the best solution...

marksteve commented 10 years ago

If you're working with python this is fast and request blocks until compile is complete so you wouldn't need to worry about race conditions: https://github.com/dahlia/libsass-python