How to disable cross-device action mirroring functionality of BrowserSync? (GhostMode)

前端 未结 5 585
挽巷
挽巷 2020-12-29 20:35

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

5条回答
  •  我在风中等你
    2020-12-29 21:21

    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
         });
    

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

提交回复
热议问题