Gulp + Browsersync如何使用标志启动Chrome

时间:2018-04-05 02:57:12

标签: google-chrome-devtools browser-sync gulp-browser-sync

我希望在Chrome中使用标志--remote-debugging-port = 9222启动浏览器同步,以便我可以通过VS Code Chrome Devtools Extension进行连接。

我的gulp文件(部分)看起来像:

gulp.task("browserSync", function () { browserSync.init({ server: { baseDir: "src" }, browser: "google chrome", }); });

尝试失败

浏览器:“google chrome --remote-debugging-port = 9222”

浏览器:“chrome.exe --remote-debugging-port = 9222”

0 个答案:

没有答案