GithubHelp home page GithubHelp logo

Refresh Browser about gulp-open HOT 5 CLOSED

pyrossh avatar pyrossh commented on May 26, 2024
Refresh Browser

from gulp-open.

Comments (5)

stephenlacy avatar stephenlacy commented on May 26, 2024

You could use gulp-open on first run, then use gulp-livereload on all subsequent builds:
https://github.com/vohof/gulp-livereload
I'm traveling right now and will see if I can create an example by the 21st.
Nag me if I do not. ;)

from gulp-open.

stephenlacy avatar stephenlacy commented on May 26, 2024

How to open the file the first time, then reload it afterwards:

var open = require('gulp-open');
var livereload = require('gulp-livereload');

var opened = false;
gulp.task('open', function(){
  if (opened == false) {
    gulp.src("./index.html")
    .pipe(open());
    opened = true;
  }
  else {
    gulp.src("./index.html")
    .pipe(livereload());
  }
});

from gulp-open.

pyrossh avatar pyrossh commented on May 26, 2024

Yesh!! Now I can get on with some awesome coding.>!!>

from gulp-open.

stephenlacy avatar stephenlacy commented on May 26, 2024

All right, I will close this now.

from gulp-open.

simkessy avatar simkessy commented on May 26, 2024

What if you're not working locally and you can't use livereload? I push my files to a remote server (Office 365) and I just need the tab to refresh when I make updates.

from gulp-open.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.