Skip to content

Example Using Livereload Object

joshvito edited this page Mar 25, 2015 · 3 revisions

Took me a few minutes to find some documentation about this on a few other similar gulp modules;

If you want to use liverelad on a custom port, you need to pass an object to livereload.

Example Use:

var DEST = "your-path-to-app";
var config = {
    root: [DEST],
    livereload: {enable: true, port: 1234},
    host: 'localhost',
    port: 5000
  };
gulp.task('webserver', function(){
  connect.server(config);
});
Clone this wiki locally