It is necessary that when you change in gulpfile.js (namely, when you add a new script file), the task was started where the files were newly coded and compressed to 1. I tried to look at the change of gulpfile but for some reason it did not help
gulp.watch('gulpfile.js',['scripts'] ); Here is the gulpfile.js code
var gulp = require('gulp'), concat = require('gulp-concat'), uglify = require('gulp-uglifyjs'); gulp.task('scripts', function () { return gulp.src([ 'app/js/libs/plugin.js', 'app/js/common.js' ]) .pipe(concat('main.min.js')) .pipe(uglify()) .pipe(gulp.dest('dist/js')); }); gulp.task('watch', function () { gulp.watch('gulpfile.js',['scripts'] ); gulp.watch('app/js/**/*.js',['scripts'] ); }); gulp.task('default', ['scripts', 'watch']);