A
A
Artyom2019-10-20 22:02:49
gulp.js
Artyom, 2019-10-20 22:02:49

How can I make two tasks run when a file is changed?

Let's say there are two tasks, the first one compiles scss to css, and the second one beautifies the scss file itself, and I need these two tasks to work when the scss file changes. Here is the code to run the sass task, but the sass-beautify task must also run at the same time. How to do it?
gulp.watch("./scss/*.scss", gulp.series("sass"));

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrej Sharapov, 2019-10-20
@airman66

gulp.series(gulp.parallel('sass', 'sass-beautify')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question