Hello everyone, and easy coding, help solve the problem. with Gulp Browser-Sync. When you start the task, the browser displays a Cannot GET error. I tried the paths in basedir to specify, and through the config and so on >>. Does not work, I will be grateful in the help.
PS don't throw stones, I put Gulp for the first time. I read the documentation.
var gulp = require ('gulp'); var less = require ('gulp-less'); var smart = require ('smart-grid'); var broser = require ('browser-sync') //Общий конфиг way Folders var config = { src: './app', css: { src: 'app/*.less', dest: 'app/css' } } gulp.task('less',function () { return gulp.src('app/') .pipe(less()) .pipe(gulp.dest('dest/css')) .pipe(browserSync.reload({stream: true})) }) gulp.task('browsers',function () { broser({ server: { baseDir: './app' }, port: 8080 }) }) gulp.task('watch',function () { gulp.watch(config.src + config.css.src, [less]); })
./appthere is anindex.html? - nörbörnën