S
S
Sizoider2016-02-10 16:02:09
gulp.js
Sizoider, 2016-02-10 16:02:09

I can't understand what is the browser-sync.Help error??

I can't understand what is the browser-sync.Help error??
guys help, can't get browser-sync to work.
localhost opens, there is an empty page and it says Cannot GET /

var gulp        = require('gulp');
var browserSync = require('browser-sync').create();

gulp.task('browser-sync', function(){
    browserSync.init(['front/css/*.css', 'front/js/*.js'], {
        server: {
            baseDir :'front'
        }
    });
});
gulp.task('watch', ['browser-sync']);

folder structure is
.git
bower
node_modules
front => css
img
js
index.html

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Khristoev, 2016-02-11
@Haoss

because there is no html page, you need baseDir :'./'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question