Skip to content

Instantly share code, notes, and snippets.

@MuratOrs
Created September 4, 2018 21:10
Show Gist options
  • Save MuratOrs/9d6e1c88e81a098697f1dad3ea93c379 to your computer and use it in GitHub Desktop.
Save MuratOrs/9d6e1c88e81a098697f1dad3ea93c379 to your computer and use it in GitHub Desktop.
Задача для Gulp
gulp.task('common-js', function() {
return gulp.src([
'app/libs/jquery/dist/jquery.min.js',
'app/libs/mmenu/js/jquery.mmenu.all.min.js',
'app/js/common.min.js',
])
.pipe(concat('scripts.min.js'))
// .pipe(uglify()) // Минимизировать весь js (на выбор)
.pipe(gulp.dest('app/js'))
.pipe(browserSync.reload({stream: true}));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment