How to use the gulp-connect.reload function in gulp-connect

To help you get started, we’ve selected a few gulp-connect examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Wikia / app / extensions / wikia / ArticleVideo / bower_components / html5-skin / gulpfile.js View on Github external
})
      .on('end', function() {
        gutil.log(gutil.colors.green(file + ' DONE'));
      })
      .pipe(source(file))
      .pipe(buffer())
      .pipe(sourcemap ? sourcemaps.init({loadMaps: true}) : gutil.noop())
      // Add transformation tasks to the pipeline here.
      .pipe(replace('', hash))
      .pipe(ugly ? uglify() : gutil.noop())
      .pipe(sourcemap ? sourcemaps.write('./') : gutil.noop())
      .pipe(gulp.dest('./build'))
      .on('end', function () {
        callback();
      })
      .pipe(reload ? connect.reload() : gutil.noop());
  }
github banderson / generator-flux-react / app / templates / gulp / tasks / browserify.js View on Github external
function bundle() {
  return bundler.bundle()
  // log errors if they happen
  .on('error', gutil.log.bind(gutil, 'Browserify Error'))
  .pipe(source(config.outputName))
  .pipe(gulp.dest(config.dest))
  .pipe(connect.reload());
}
github mingliangfeng / flux-riot / examples / todo / build / tasks / browserify.js View on Github external
function bundle() {
  return bundler.bundle()
  // log errors if they happen
  .on('error', gutil.log.bind(gutil, 'Browserify Error'))
  .pipe(source(config.outputName))
  .pipe(gulp.dest(config.dest))
  .pipe(connect.reload())
}
github circuitsim / circuit-simulator / gulpfile.js View on Github external
function rebundle() {
    return bundler.bundle()
      .on('error', handleError)
      .pipe(source('main.js'))
      .pipe(buffer())
      .pipe(sourcemaps.init({ loadMaps: true }))
      .pipe(sourcemaps.write('./'))
      .pipe(gulp.dest(devBuildDir))
      .pipe(connect.reload());
  }
github dasilvacontin / animus / tasks / browserify.js View on Github external
function bundle () {
  return bundler.bundle()
    .pipe(source('bundle.js'))
    .pipe(buffer())
    .pipe(sourcemaps.init({ loadMaps: true }))
    .pipe(sourcemaps.write('./'))
    .pipe(gulp.dest('./dist'))
    .pipe(connect.reload())
}
github lytics / pathforajs / gulpfile.js View on Github external
gulp.task('build:styles', function () {
  gulp.src('src/less/*.less')
    .pipe(less({
      paths: [
        path.join(__dirname, 'less', 'includes')
      ]
    }))
    .pipe(gulp.dest('dist'))
    .pipe(cssmin())
    .pipe(rename({
      suffix: '.min'
    }))
    .pipe(gulp.dest('dist'))
    .pipe(connect.reload());
});
github LoeiFy / Mirror / gulpfile.js View on Github external
gulp.task('reload', function () {
    return gulp.src(['index.html'])
        .pipe(connect.reload())
})
github angular / angular2-seed / gulpfile.js View on Github external
gulp.task('copy:src', function(){
  return gulp.src([
    'src/bootstrap.js',
    'src/index.html',
    'src/**/*.html',
    'src/**/*.css'
  ])
  .pipe(gulp.dest('dist'))
  .pipe(connect.reload());
});
github angular / protractor / website / gulpfile.js View on Github external
gulp.task('reloadServer', function() {
  gulp.src(paths.outputDir)
      .pipe(connect.reload());
});
github hankchizljaw / stalfos / front-end / gulpfile.js View on Github external
gulp.task('livereload', function () {

    return gulp.src( WEB_PATH + '/**/*' )
                .pipe(connect.reload());
});

gulp-connect

Gulp plugin to run a webserver (with LiveReload)

MIT
Latest version published 5 years ago

Package Health Score

57 / 100
Full package analysis

Popular gulp-connect functions