mockko / livereload

LiveReload applies CSS/JS changes to Safari or Chrome w/o reloading the page (and autoreloads the page when HTML changes)
http://livereload.com/
1.18k stars 56 forks source link

Add support for less, sass and scss files #34

Open franciscolourenco opened 13 years ago

NV commented 13 years ago

Can you expand on this? Less, SASS, SCSS simply compiles to CSS, so it should work already.

franciscolourenco commented 13 years ago

Sorry, maybe is just when using less.js : http://fadeyev.net/2010/06/19/lessjs-will-obsolete-css/

With less.js, .less files are directly included in the html, so no css files are created.

millermedeiros commented 13 years ago

add this to your .livereload file (created on the folder that you are watching or at ~/):

# additional extensions to monitor
config.exts << 'less'
config.exts << 'mustache'

note that you can keep adding new lines to include more file extensions.

there is also this gist with a Rakefile that compiles less, sass, etc automatically: https://gist.github.com/472349

both info grabbed from the README file.