MyGit

v2.18.11

BrowserSync/browser-sync

版本发布时间: 2017-05-15 22:41:41

BrowserSync/browser-sync最新发布版本:v3.0.3(2024-09-25 00:17:50)

FIXED Source map files are now ignored by default. c990ea223b5792e6d9b9c8fea34efb7f634a84c9 https://github.com/BrowserSync/browser-sync-client/commit/24de0ec6f2d50f4d7dbc352d3511e0b8ee4fe3bc

Previously, if you were watching a directory into which source maps were being written (alongside your CSS/JS etc) then Browsersync would instruct all browsers to actually RELOAD as it wouldn't know how to handle the 'map' files.

This was particularly frustrating for gulp users - take this following example (where we compile sass-> css)

gulp.task('styles', function() {
  return gulp.src('app/core.scss')
      .pipe(sourcemaps.init())
      .pipe(sass())
      .pipe(sourcemaps.write('.'))
      .pipe(gulp.dest('dist'))
      .pipe(browserSync.stream())
});

With this, each time a file is saved, there would be 2 output files core.css & core.css.map and Browsersync would be informed of both. With the CSS file, it would update any references to that file in all connected browsers, but for the map file, it would perform a full page reload instead... This is never what a user expects, so I've fixed it.


FIXED default ghostMode.location: true https://github.com/BrowserSync/browser-sync/commit/1a0505ca562cb2239ef233b3eca77e29aaad7084

A recent change stopped a module being loaded on the client-side that handled UI events such as 'SYNC ALL' etc.

Issue: https://github.com/BrowserSync/browser-sync/issues/1363


FIXED Added pointer-events: none to notification https://github.com/BrowserSync/browser-sync-client/pull/36


FIXED Page blinking on styles reload is fixed https://github.com/BrowserSync/browser-sync-client/pull/39

相关地址:原始地址 下载(tar) 下载(zip)

查看:2017-05-15发行的版本