webxl / grunt-reload

A grunt task and reverse proxy that enables live reloading of updated files in the browser.
MIT License
132 stars 19 forks source link

Reloading CSS in place with LiveReload #26

Closed OliverJAsh closed 11 years ago

OliverJAsh commented 11 years ago
...
    port: 35729, // LR default
    liveReload: {}
...

This is what the docs state – what is the object supposed to be? According to the docs, liveReload should just be a boolean.

When changes are made to a CSS file, the whole page is reloaded instead of just the CSS file. I thought this wasn't supposed to happen?

xrado commented 11 years ago

+1

webxl commented 11 years ago

The problem is that grunt-contrib-watch doesn't pass the names of the files that have been updated. I did find a work around, however. See https://github.com/gruntjs/grunt-contrib-watch/issues/14#issuecomment-12704238