Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Livereload CSS and images without browser refresh #490

Closed
wants to merge 1 commit into from

Commits on Sep 10, 2014

  1. Enable soft livereload of CSS and images

    Prior to this commit a dummy JavaScript filename was sent to LiveReload when changing a static file (CSS, image etc.), forcing a full browser reload of the page.
    
    This commit fixes this by sending the relative file path of the changed static resource, enabling partial live reloading for CSS- and image-changes. If more than one static file happens to end up in the same changeevent-batch, it will fall back to do a full refresh. To enable this logic, the change events with names ending with ".goutputstream*" is now filtered out as temporary.
    
    Changes in dynamic content behaves like before.
    
    Issue gohugoio#490
    bep committed Sep 10, 2014
    Copy the full SHA
    3f61c62 View commit details
    Browse the repository at this point in the history