Answer the question
In order to leave comments, you need to log in
Browser-sync (http//:localhost3000 Application not found) why not working?
Doesn't update browsers. Why can't he find it.
const gulp = require('gulp');
const sass = require('gulp-sass');
const browserSync = require('browser-sync').create();
function style () {
return gulp.src('./scss/**/*.scss')
.pipe(sass())
.pipe(gulp.dest('./css'))
.pipe(browserSync.stream())
}
function watch () {
browserSync.init({
server: {
baseDir: './'
}
})
gulp.watch('./scss/**/*.scss', style);
gulp.watch('./*.html').on('change', browserSync.reload);
}
exports.style = style;
exports.watch = watch;
Answer the question
In order to leave comments, you need to log in
try manually specifying the browser
browserSync.init({
server: {
baseDir: './'
},
browser: 'chrome'
})
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question