Answer the question
In order to leave comments, you need to log in
Why cannton GET error?
I know that a couple of years ago there were questions, but none of the answers came up. Maybe I have an error somewhere. Tried without
port: 8080,and with them, still a mistake. And through the command line and through powerShell and through the IDE command line, it's still an error. Can't get index.html ! I will be very grateful to you.
open: true,
notify: false
var gulp = require('gulp');
var bs = require('browser-sync');
gulp.task('server', function(){
bs.init({
server: {
baseDir: "./homework 16.12/",
},
port: 8080,
open: true,
notify: false
});
gulp.watch("homework 16.12/*.html").on('change', bs.reload);
});
Answer the question
In order to leave comments, you need to log in
Thanks to RAX7, the problem was solved.
1) Incorrectly specified
should be like this:
2) And also correct here:baseDir: "./homework_16.12",
to
3) Well, so that /index.html is not a mandatory entry - you just need to remove
it Thanks again for the help RAX7gulp.watch("/*.html").on('change', bs.reload);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question