added scrollRestoreTechnique:'cookie' in the browsersync init config, potentially solve refresh position lost bug.

This commit is contained in:
Zhimin YE (Rex)
2016-05-25 15:37:09 +01:00
parent e1a273a986
commit 562ddeab94
2 changed files with 32 additions and 32 deletions
+2 -1
View File
@@ -798,7 +798,8 @@ function watchAndSync(options, cb) {
execCommands(['npm run harp -- server .'], {}, cb);
var browserSync = require('browser-sync').create();
browserSync.init({proxy: 'localhost:9000'});
browserSync.init({proxy: 'localhost:9000',
scrollRestoreTechnique: 'cookie'});
if (options.devGuide) {
devGuideExamplesWatch(_devguideShredOptions, browserSync.reload);