jeudi 6 décembre 2018

Gulp - Cannot GET /

I'm trying to use BrowserSync with Gulp in a Laravel project.

This is the code of my task:

gulp.task('browserSync', function() {
  browserSync.init({
    server: {
      baseDir: './public/routes/web.php'
    },
  })
});

gulp.task('dev', ['browserSync', 'minify-css', 'minify-js'], function(){

  gulp.watch('./public/css/*.css', ['minify-css']);
  gulp.watch('./public/js/*.js', ['minify-js']);

  gulp.watch('./public/css/*.css', browserSync.reload);
  gulp.watch('./public/js/*.js', browserSync.reload);
});

The problem is that when gulp open a browser tab on http://localhost:3000/ I have this error:

Cannot GET /



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire