What is gulp better than grunt?

  node.js, question

I just learned grunt, and it feels great, but there seem to be a lot of comments on the Internet about how good glup is and how rubbish grunt is. I don’t think so. I think grunt is pretty good. The configuration file is not too complicated to write. Aren’t they all doing some basic automation work and wasting everyone’s time?

Tell me how I feel when I use it

  • Gulp’s configuration file does not have so many parameter configurations, and based on unix’s pipe idea, it makes people feel very comfortable writing and constructing task codes, which is more conducive to the maintenance and reading of developers.

gulp.task('sass', function() {
 return gulp.src('src/styles/main.scss')
 .pipe(sass({ style: 'compressed' }))
 .pipe(gulp.dest('dist/assets/css'))
 });
  • Gulp’s api is simpler and easier to use

  • Gulp node-based streaming can quickly build projects and reduce frequent IO operations