gulp-connect icon indicating copy to clipboard operation
gulp-connect copied to clipboard

Is there a way to automatically open the browser once the server starts?

Open Fawke opened this issue 5 years ago • 1 comments

Somewhat similar to the open configuration property provided by gulp-webserver?

Fawke avatar Jul 13 '19 09:07 Fawke

We're using gulp-open for this:

const open = require('gulp-open');
gulp.task('open', function () {
    gulp
        .src(config.paths.dist.root + 'dev-site/index.html')
        .pipe(open({ uri: config.localServer.url, app: 'iexplore' }));
});
gulp.task('run-server', gulp.parallel('connect', 'open'));

franktopel avatar Aug 20 '19 15:08 franktopel