久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <legend id='U3nND'><style id='U3nND'><dir id='U3nND'><q id='U3nND'></q></dir></style></legend><tfoot id='U3nND'></tfoot>

      <i id='U3nND'><tr id='U3nND'><dt id='U3nND'><q id='U3nND'><span id='U3nND'><b id='U3nND'><form id='U3nND'><ins id='U3nND'></ins><ul id='U3nND'></ul><sub id='U3nND'></sub></form><legend id='U3nND'></legend><bdo id='U3nND'><pre id='U3nND'><center id='U3nND'></center></pre></bdo></b><th id='U3nND'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='U3nND'><tfoot id='U3nND'></tfoot><dl id='U3nND'><fieldset id='U3nND'></fieldset></dl></div>

        • <bdo id='U3nND'></bdo><ul id='U3nND'></ul>
      1. <small id='U3nND'></small><noframes id='U3nND'>

        如何禁用 BrowserSync 的跨設備動作鏡像功能?(幽靈

        How to disable cross-device action mirroring functionality of BrowserSync? (GhostMode)(如何禁用 BrowserSync 的跨設備動作鏡像功能?(幽靈模式))
      2. <i id='ZUW2l'><tr id='ZUW2l'><dt id='ZUW2l'><q id='ZUW2l'><span id='ZUW2l'><b id='ZUW2l'><form id='ZUW2l'><ins id='ZUW2l'></ins><ul id='ZUW2l'></ul><sub id='ZUW2l'></sub></form><legend id='ZUW2l'></legend><bdo id='ZUW2l'><pre id='ZUW2l'><center id='ZUW2l'></center></pre></bdo></b><th id='ZUW2l'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ZUW2l'><tfoot id='ZUW2l'></tfoot><dl id='ZUW2l'><fieldset id='ZUW2l'></fieldset></dl></div>

          <tfoot id='ZUW2l'></tfoot>

            • <bdo id='ZUW2l'></bdo><ul id='ZUW2l'></ul>

              <small id='ZUW2l'></small><noframes id='ZUW2l'>

                <tbody id='ZUW2l'></tbody>

                <legend id='ZUW2l'><style id='ZUW2l'><dir id='ZUW2l'><q id='ZUW2l'></q></dir></style></legend>
                • 本文介紹了如何禁用 BrowserSync 的跨設備動作鏡像功能?(幽靈模式)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我們的團隊使用 gulp-angular 生成器和 yeoman 來搭建我們的網絡應用程序.它使用 browsersync 來處理我們想要的實時重新加載.但是,我們剛剛部署到我們的開發服務器,現在當兩個開發人員同時使用 gulp serve 命令時,他們都顯示在同一個窗口中(即一個開發人員在一個窗口上鍵入,它顯示在另一個開發人員的窗口中以及).我相信這是由于 BrowserSync 的跨設備測試功能,但是我不知道如何禁用此功能.如果有人知道如何做到這一點(最好不要禁用我們的實時重載功能),請告訴我!

                  Our team used the gulp-angular generator with yeoman to scaffold out our web app. It uses browsersync to handle live reloads, which we want. However, we just deployed to our development server, and now when two developers are using the gulp serve command at the same time, they both are shown the same window (i.e. one developer types on one window, it shows up in the other developer's window as well). I believe this is due to BrowserSync's cross-device testing capabilities, however I am at a loss for how to disable this feature. If anyone knows how to do this (preferably without disabling our live-reload functionality) please let me know!

                  下面是我在 gulp 文件夾中的 server.js 文件的代碼,它與 gulp-angular 生成器附帶的代碼相同,所以希望這對某些人有所幫助.

                  Below is the code for my server.js file in the gulp folder, which is the same as the one that comes with the gulp-angular generator, so hopefully this will help some people.

                  'use strict';
                  
                  var path = require('path');
                  var gulp = require('gulp');
                  var conf = require('./conf');
                  
                  var browserSync = require('browser-sync');
                  var browserSyncSpa = require('browser-sync-spa');
                  
                  var util = require('util');
                  
                  var proxyMiddleware = require('http-proxy-middleware');
                  
                  function browserSyncInit(baseDir, browser) {
                    browser = browser === undefined ? 'default' : browser;
                  
                    var routes = null;
                    if(baseDir === conf.paths.src || (util.isArray(baseDir) && baseDir.indexOf(conf.paths.src) !== -1)) {
                      routes = {
                        '/bower_components': 'bower_components'
                      };
                    }
                  
                    var server = {
                      baseDir: baseDir,
                      routes: routes
                    };
                  
                    /*
                     * You can add a proxy to your backend by uncommenting the line bellow.
                     * You just have to configure a context which will we redirected and the target url.
                     * Example: $http.get('/users') requests will be automatically proxified.
                     *
                     * For more details and option, https://github.com/chimurai/http-proxy-middleware/blob/v0.0.5/README.md
                     */
                    // server.middleware = proxyMiddleware('/users', {target: 'http://jsonplaceholder.typicode.com', proxyHost: 'jsonplaceholder.typicode.com'});
                  
                    browserSync.instance = browserSync.init({
                      startPath: '/',
                      server: server,
                      browser: browser
                    });
                  }
                  
                  browserSync.use(browserSyncSpa({
                    selector: '[ng-app]'// Only needed for angular apps
                  }));
                  
                  gulp.task('serve', ['watch'], function () {
                    browserSyncInit([path.join(conf.paths.tmp, '/serve'), conf.paths.src]);
                  });
                  
                  gulp.task('serve:dist', ['build'], function () {
                    browserSyncInit(conf.paths.dist);
                  });
                  
                  gulp.task('serve:e2e', ['inject'], function () {
                    browserSyncInit([conf.paths.tmp + '/serve', conf.paths.src], []);
                  });
                  
                  gulp.task('serve:e2e-dist', ['build'], function () {
                    browserSyncInit(conf.paths.dist, []);
                  });
                  

                  推薦答案

                  遇到同樣的問題,你可以簡單地在init選項中將ghost mode設置為false.

                  Faced same problem, you can simply set ghost mode to false in init options.

                       browserSync.instance = browserSync.init({
                        startPath: '/',
                        ghostMode: false,
                        server: server,
                        browser: browser
                       });
                  

                  不需要更改 default.config.js :)

                  no need to change in default.config.js :)

                  這篇關于如何禁用 BrowserSync 的跨設備動作鏡像功能?(幽靈模式)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Browserify, Babel 6, Gulp - Unexpected token on spread operator(Browserify,Babel 6,Gulp - 傳播運算符上的意外令牌)
                  Is it possible to pass a flag to Gulp to have it run tasks in different ways?(是否可以將標志傳遞給 Gulp 以使其以不同的方式運行任務?)
                  Why do we need to install gulp globally and locally?(為什么我們需要在全局和本地安裝 gulp?)
                  How to run Gulp tasks sequentially one after the other(如何一個接一個地依次運行 Gulp 任務)
                  Stylesheet not loaded because of MIME-type(由于 MIME 類型而未加載樣式表)
                  Visual Studio 2015 crashes when opening Javascript files(打開 Javascript 文件時 Visual Studio 2015 崩潰)

                        <bdo id='d93u7'></bdo><ul id='d93u7'></ul>
                      • <tfoot id='d93u7'></tfoot>

                      • <small id='d93u7'></small><noframes id='d93u7'>

                      • <legend id='d93u7'><style id='d93u7'><dir id='d93u7'><q id='d93u7'></q></dir></style></legend>

                          <i id='d93u7'><tr id='d93u7'><dt id='d93u7'><q id='d93u7'><span id='d93u7'><b id='d93u7'><form id='d93u7'><ins id='d93u7'></ins><ul id='d93u7'></ul><sub id='d93u7'></sub></form><legend id='d93u7'></legend><bdo id='d93u7'><pre id='d93u7'><center id='d93u7'></center></pre></bdo></b><th id='d93u7'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='d93u7'><tfoot id='d93u7'></tfoot><dl id='d93u7'><fieldset id='d93u7'></fieldset></dl></div>
                            <tbody id='d93u7'></tbody>

                            主站蜘蛛池模板: 日韩视频在线观看免费 | 久久综合五月天 | 欧美在线日韩 | 欧美日韩在线播放 | 久久久久成人网 | 久久久夜色精品 | 国产成人aⅴ| 干少妇视频 | 午夜在线免费观看 | 国产精品剧情 | 丰满少妇在线观看网站 | 性久久久久久 | 亚洲激情久久 | 成人免费视屏 | 一区二区三区四区在线视频 | 久久a级片| 国产精品欧美一区二区 | 天天躁日日躁狠狠很躁 | 欧美极品一区 | 国产成人在线播放 | 中文字幕免费在线观看 | 成人性生活免费视频 | 亚洲精品在线视频观看 | 午夜在线观看视频 | 特黄一级视频 | 视色av | 国产精品成人一区 | 国产三级免费观看 | 午夜成人影片 | 午夜专区 | 日本不卡在线播放 | 久久亚洲一区二区 | 天天爽夜夜爽 | 中文字幕在线视频播放 | 一区二区三区国产视频 | 亚欧洲精品在线视频免费观看 | 日韩欧美亚洲 | 国产一级二级三级 | 亚洲精品影院 | 亚洲黄色影院 | 国产三级在线播放 |