Open ranlix opened 6 years ago
You're returning a stream in your "node" gulp task so "server" task doesn't wait for nodemon
to start and the callback is ignored. Remove return
statement and it should work.
From gulp docs:
Gulp tasks are asynchronous and Gulp uses async-done to wait for the task's completion. Tasks are called with a callback parameter to call to signal completion. Alternatively, Task can return a stream, a promise, a child process or a RxJS observable to signal the end of the task.
Issue details
I setup a project with express, gulp-nodemon, browser-sync, when I start the server with gulp command, browsersync inits before node server is ready, the new browser tab keeps blank.
Please specify which version of Browsersync, node and npm you're running
Affected platforms
Browsersync use-case
for all other use-cases, (gulp, grunt etc), please show us exactly how you're using Browsersync
Here is the content of gulpfile.js: