Im having problems to update my gulpfile.js from GULP3 to GULP4 I tried to update with gulp.series() and gulp.parallel() My Gulpfile is like this :
var gulp = require('gulp')
var browserSync = require('browser-sync').create()
gulp.task('serve', function(){
browserSync.init({
server: {
baseDir: './dist'
}
})
})
gulp.task('css', function(){
var processors = [
//postcssPlugins
]
return gulp.src('./srcFiles')
.pipe(postcss(processors))
.pipe(gulp.dest('./DestFiles'))
.pipe(browserSync.stream())
})
gulp.task('watch', function(){
gulp.watch('srcFiles', ['css'])
gulp.watch('DestFile.Html').on('change', browserSync.reload)
})
gulp.task('default', ['watch', 'serve'])
The error I get is Task function must be specified