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

Clearer Documentation on how to setup livereload #27

Open
joeybaker opened this issue Feb 6, 2013 · 1 comment
Open

Clearer Documentation on how to setup livereload #27

joeybaker opened this issue Feb 6, 2013 · 1 comment

Comments

@joeybaker
Copy link

I've been figure out how to enable the "livereload" functionality of grunt-reload (no page refreshes for css/image changes), and have so far been unsuccessful.

The Readme states:

...
    port: 35729, // LR default
    liveReload: {}
...

…is necessary work with the livereload extension. This appears to be true, using the livereload browser extension will trigger a full page refresh, but not trigger the "livereload" capabilities.

Then, in the tests:

            liveReloadTest: {
                // test at any URL with LR extension enabled
                port: 35729, // LR default
                liveReload: {
                    apply_css_live: true,
                    apply_images_live: true
                }
            },

The extra options under liveReload aren't documented, (and seem to have no effect)?

All of which leaves me with several questions:

@joeybaker
Copy link
Author

FWIW, the Gruntfile I'm working with looks something like this:

  , watch: {
      sass: {
        files: 'assets/sass/**/*.scss'
        , tasks: ['compass:dev']
        , interrupt: true
      }
      , css: {
        files: 'assets/css**/**/*.css'
        , tasks: ['reload']
        , interrupt: true
      }



    , reload: {
      port: 35729 // LR default
      , liveReload: {
        'apply_css_live': true
        , 'apply_images_live': true
      }
      , proxy: {
        host: 'localhost'
        , port: 8888
      }
    }



  grunt.registerTask('code', ['reload', 'watch'])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant