Answer the question
In order to leave comments, you need to log in
Error while executing command "gulp browser-sync" Couldn't open browser?
Hello.
Just started getting to know gulp.
I decided to screw browserSync and ran into an error
. Here is the gulpfile.js code itself
var gulp = require('gulp'),
sass = require('gulp-sass'),
browserSync = require('browser-sync');
gulp.task('sass', function() {
return gulp.src('app/sass/**/*.sass')
.pipe(sass())
.pipe(gulp.dest('app/css'))
});
gulp.task('watch', function() {
gulp.watch('app/sass/main.sass', gulp.parallel('sass'));
});
gulp.task('browser-sync', function() {
browserSync.init({
server: {
baseDir: 'app'
},
notify: false,
});
});
browser: 'chrome'
browser:'chrome.exe'
port: '8080'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question