function scripts() {
	return src(paths.scripts.src)
	.pipe(concat(paths.jsOutputName))
	.pipe(uglify())
	.pipe(dest(paths.scripts.dest))
	.pipe(browserSync.stream())
}на нем приходится компилировать common.js и перекидывать его на новый комп уже в сжатом виде (файлик 'scripts.min.js')
$('a[href*="#"]').click(function(e) {
  const $target = $(this.hash);
  const topOffset = 100;
  if ($target.length) {
    e.preventDefault();
    $("html, body")
      .stop()
      .animate(
        {
          scrollTop: $target.offset().top - topOffset
        },
        900,
        "swing",
        function() {
          history.pushState(
            {},
            document.title,
            window.location.pathname + target
          );
          return false;
          // window.location.hash = target;
        }
      );
  }
});$('body').append("<div id='edit-file-alert' title='Редактировать' style='display:none'>"+response+"</div>");$.fancybox.open(response)$.fancybox.open("#edit-file-alert")