Created
March 3, 2021 15:08
-
-
Save ajgagnon/7c31a627ee8c67be83caf433d9be7be8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| // Your LAN IP or host where you would want the live server | |
| // Override this if you know your correct external IP (LAN) | |
| // Otherwise, the system will always use localhost and will not | |
| // work for external IP. | |
| // This will also create some issues with file watching because for | |
| // some reason, service-worker doesn't work on localhost? | |
| // https://github.com/BrowserSync/browser-sync/issues/1295 | |
| // So it is recommended to change this to your LAN IP. | |
| // If you intend to access it from your LAN (probably do?) | |
| // If you keep null, then wpackio-scripts will try to determine your LAN IP | |
| // on it's own, which might not always be satisfying. But it is in most cases. | |
| host: undefined, | |
| // Your WordPress development server address | |
| // This is super important | |
| proxy: "http://presto.local", | |
| // PORT on your localhost where you would want live server to hook | |
| port: 3004, | |
| // UI passed directly to browsersync | |
| ui: { | |
| port: 3001, | |
| }, | |
| // Whether to show the "BrowserSync Connected" | |
| notify: false, | |
| // Open the local URL, set to false to disable | |
| open: false, | |
| // BrowserSync ghostMode, set to false to completely disable | |
| ghostMode: false, | |
| // { | |
| // clicks: true, | |
| // scroll: true, | |
| // forms: true, | |
| // }, | |
| // Override system calculated public path of the `dist` directory | |
| // This must have forward slash, otherwise it will not work. | |
| distPublicPath: undefined, | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment