Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

BrowserSync: set "scrollRestoreTechnique" to "cookie" #2447

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,11 @@ 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'
});

// When using the --focus=name flag, only **/name/**/*.* example files and
// **/name.jade files are watched. This is useful for performance reasons.
Expand Down