i using gulp-open 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 app when use app:'firefox' when use chrome option opens empty index.html? how can fix this?
depending on os need refer chrome app differently in options:
'google-chrome' // linux 'chrome' // windows 'google chrome' or 'google chrome' // osx
refer section options.app in the npm documentation gulp-open.
Comments
Post a Comment