Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Fawke opened this issue Jul 13, 2019 · 1 comment
Open

Comments

@Fawke
Copy link

Fawke commented Jul 13, 2019

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

@franktopel
Copy link

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'));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants