I am using gulp-open with gulp in windows 7:
gulp.task('op', function(){
    var options = {
        uri: 'localhost:8080',
        app: 'chrome'
    };
    gulp.src(__filename)
        .pipe(open(options));
});
The index.html file opens with the app when I use app:'Firefox' but when I use the chrome option it opens an empty index.html? How can I fix this?
Depending on the OS you need to refer to the chrome app differently in options:
'google-chrome' // Linux 
'chrome' // Windows 
'google chrome' or 'Google Chrome' // OSX 
Refer to section Options.app in the NPM documentation about gulp-open.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With