D
D
Darkness2018-12-16 13:13:38
gulp.js
Darkness, 2018-12-16 13:13:38

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,
open: true,
notify: false
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.
The index.html file is EXACTLY in the folder I specify. P.S. I use this collector for the first time (and the collector in general)
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);
});

Mistake:
5c1627c263014287361026.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Darkness, 2018-12-16
@AntonBrock

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 question

Ask a Question

731 491 924 answers to any question