Comments (5)
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.
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.
Yesh!! Now I can get on with some awesome coding.>!!>
from gulp-open.
All right, I will close this now.
from gulp-open.
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)
- not working under windows 7 HOT 1
- Chrome doesn't open HOT 1
- Update readme option.app HOT 1
- Incorrect docs for app option HOT 2
- Open url not working for me HOT 12
- Publish v1.0.0 to npm HOT 1
- Feature Request: options arguments HOT 3
- 'open' defaults to parallels desktop on mac HOT 3
- can open browser and enable dev tools(eg: chrome dev tools) HOT 2
- Open new tab in browser HOT 1
- Browser Url error HOT 4
- Feature Request: only open if not already open HOT 2
- Open multiple files HOT 3
- Can't find gulp-open HOT 7
- open IE HOT 2
- `node-open` breaks on Linux - switch to `opn`? HOT 1
- Don't check `file.isNull` HOT 3
- Can't use directory as uri anymore HOT 7
- Process does not exit HOT 7
- Any way to target a specific google chrome profile? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-open.