This repository has been archived by the owner on Aug 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Refresh Browser #3
Comments
You could use |
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());
}
}); |
Yesh!! Now I can get on with some awesome coding.>!!> |
All right, I will close this now. |
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
There should be some way to refresh the currently opened browser so that you can reload/refresh the page when some file changes. This would make it easier for developing static websites and phonegap/cordova applications
The text was updated successfully, but these errors were encountered: