How to use the browser-sync.reset function in browser-sync

To help you get started, we’ve selected a few browser-sync examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shakyShane / bs-rewrite-rules / tests / add.js View on Github external
function startWithRules (rules, cb) {
    browserSync.reset();
    var bs = browserSync.create();

    bs.init({
        server: "test/fixtures",
        logLevel: "silent",
        rewriteRules: rules,
        open: false,
        plugins: [{module: plugin}]
    }, cb);
}
github shakyShane / bs-rewrite-rules / tests / init.js View on Github external
function startWithRules (rules, cb) {
    browserSync.reset();
    var bs = browserSync.create();

    bs.init({
        server: "test/fixtures",
        logLevel: "silent",
        rewriteRules: rules,
        open: false,
        plugins: [{module: plugin}]
    }, cb);
}