Proxy 代理服务器上的Browsersync LiveReload

Proxy 代理服务器上的Browsersync LiveReload,proxy,browser-sync,Proxy,Browser Sync,我是浏览器同步新手,似乎不知道如何让实时重新加载在代理服务器上工作。在我当前的设置中,我无法访问本地计算机上的文件,因此我必须使用代理。我目前有一个配置文件,这是当前的设置 module.exports = { "ui": { "port": 3001, "weinre": { "port": 8080 } }, "files": ['Styles/bootstrap-custom-addons.css', '/Styles/*.css'], "watch

我是浏览器同步新手,似乎不知道如何让实时重新加载在代理服务器上工作。在我当前的设置中,我无法访问本地计算机上的文件,因此我必须使用代理。我目前有一个配置文件,这是当前的设置

module.exports = {
"ui": {
    "port": 3001,
    "weinre": {
        "port": 8080
    }
},
"files": ['Styles/bootstrap-custom-addons.css', '/Styles/*.css'],
"watchOptions": {},
"server": false,
"proxy": {
    target: "http://example.com",
    files: ['Styles/bootstrap-custom-addons.css', '/Styles/*.css'],
},
"port": 3000,
"middleware": false,
"ghostMode": {
    "clicks": true,
    "scroll": true,
    "forms": {
        "submit": true,
        "inputs": true,
        "toggles": true
    }
},
"logLevel": "info",
"logPrefix": "BS",
"logConnections": false,
"logFileChanges": true,
"logSnippet": true,
"rewriteRules": false,
"open": "local",
"browser": "default",
"xip": false,
"hostnameSuffix": false,
"reloadOnRestart": true,
"notify": true,
"scrollProportionally": true,
"scrollThrottle": 0,
"reloadDelay": 0,
"reloadDebounce": 0,
"plugins": [],
"injectChanges": true,
"startPath": null,
"minify": true,
"host": null,
"codeSync": true,
"timestamps": true,
"clientEvents": [
    "scroll",
    "input:text",
    "input:toggles",
    "form:submit",
    "form:reset",
    "click"
],
"socket": {
    "path": "/browser-sync/socket.io",
    "clientPath": "/browser-sync",
    "namespace": "/browser-sync",
    "clients": {
        "heartbeatTimeout": 5000
    }
},
"tagNames": {
    "less": "link",
    "scss": "link",
    "css": "link",
    "jpg": "img",
    "jpeg": "img",
    "png": "img",
    "svg": "img",
    "gif": "img",
    "js": "script"
}
})

页面滚动和单击可跨浏览器工作,但当我在服务器上更新文件时,它不会自动重新加载页面,我是否未正确设置配置文件?另外,运行浏览器同步启动--config bs-config.js和只运行浏览器同步启动--proxy“”之间有什么区别