I'm in the learning path of js, and just started using the yeoman generators. And I use gulp for the pre-processing and other stuffs. When I was going through the gulpfile.js, I found this block of code.
gulp.task('serve', ['styles', 'html', 'watch'], () => {
browserSync({
notify: false,
port: 9000,
server: {
baseDir: 'app'
}
})
});
I can understand that when we execute gulp-serve
, it runs styles, html and watch task and opens a development server in the port 9000.
But I don't understand what does this () =>
means.
Will be very grateful if someone can tell me what does that mean.
Thanks in advance.