Gulp automatically generates dist directories

the front end uses gulp to compress the code, and the compressed dist/mian.min.js and dist/main.min.css, will be introduced on the home page, but each compression will only be carried out when the css and js files under gulp monitoring are changed. is there any way to compress and other operations directly after running the gulp command?

Mar.02,2021

gulp.task ('watch' ,
all the tasks in gulp.task (' default' ), can't you just use the command gulp to execute?

Menu