Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question