dz0ny/LiveReload-sublimetext2 — Issue #2: Compass support 
Author: Grafikart
Created: 2012-01-20 11:11:39+00:00
State: open

Hi,

I was working with your plugin but I have a specific problem. I use compass framework so I have a file.scss that generate a file.css in an other directory.

I edited your .py to add these lines when the event on_post_save is fired :
filename = view.file_name()
if filename.find('.scss') > 0 :
filename = os.path.dirname(os.path.dirname(view.file_name()))

#The problem :
My idea is to allow liverefresh of CSS but the system detect the SCSS modification and reload the page. Is there a way to set exclusions ?

I tried
data = json.dumps(["refresh", {
"path": filename,
"exclusions": "~*.scss",
"apply_js_live": settings.get('apply_js_live'),
"apply_css_live": settings.get('apply_css_live'),
"apply_images_live": settings.get('apply_images_live')
}])

Without success :(