Created
August 10, 2020 13:35
-
-
Save zourite/d4e9663f26e6e8d0a69073b7c11c64e4 to your computer and use it in GitHub Desktop.
This file contains 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 = { | |
/* | |
|-------------------------------------------------------------------------- | |
| Files to watch | |
|-------------------------------------------------------------------------- | |
| https://github.com/shakyShane/browser-sync/wiki/options#wiki-files | |
*/ | |
files: ['**/*.php', '**/*.css', '**/*.js', '**/*.css'], | |
/* | |
|-------------------------------------------------------------------------- | |
| Directories or files to exclude | |
|-------------------------------------------------------------------------- | |
| https://github.com/shakyShane/browser-sync/wiki/options#wiki-exclude | |
*/ | |
exclude: false, | |
/* | |
|-------------------------------------------------------------------------- | |
| Proxy | |
|-------------------------------------------------------------------------- | |
| https://github.com/shakyShane/browser-sync/wiki/options#wiki-proxy | |
*/ | |
proxy: { | |
target: "https://lobster.test" // e.g., localhost.dev, wordpress.dev | |
}, | |
ports: { | |
min: 3000, // If you already use port '3000', Change port number as you like. | |
max: 3001 | |
}, | |
/* | |
|-------------------------------------------------------------------------- | |
| Server | |
|-------------------------------------------------------------------------- | |
| https://github.com/shakyShane/browser-sync/wiki/options#wiki-server | |
*/ | |
server: false, // It should NOT be used if you have an existing PHP, WordPress. | |
/* | |
|-------------------------------------------------------------------------- | |
| Start path | |
|-------------------------------------------------------------------------- | |
| https://github.com/shakyShane/browser-sync/wiki/options#wiki-startPath | |
*/ | |
startPath: null, | |
/* | |
|-------------------------------------------------------------------------- | |
| Ghost Mode | |
|-------------------------------------------------------------------------- | |
| https://github.com/shakyShane/browser-sync/wiki/options#wiki-ghostmode | |
*/ | |
ghostMode: { | |
clicks: true, | |
links: true, | |
forms: true, | |
scroll: true | |
}, | |
/* | |
|-------------------------------------------------------------------------- | |
| Open (true|false) | |
|-------------------------------------------------------------------------- | |
| https://github.com/shakyShane/browser-sync/wiki/options#wiki-open | |
*/ | |
open: true, | |
/* | |
|-------------------------------------------------------------------------- | |
| xip (true|false) | |
|-------------------------------------------------------------------------- | |
| https://github.com/shakyShane/browser-sync/wiki/options#wiki-xip | |
*/ | |
xip: false, | |
/* | |
|-------------------------------------------------------------------------- | |
| Timestamps (true|false) | |
|-------------------------------------------------------------------------- | |
| https://github.com/shakyShane/browser-sync/wiki/options#wiki-timestamps | |
*/ | |
timestamps: true, | |
/* | |
|-------------------------------------------------------------------------- | |
| File Timeout (milliseconds) | |
|-------------------------------------------------------------------------- | |
| https://github.com/shakyShane/browser-sync/wiki/options#wiki-filetimeout | |
*/ | |
fileTimeout: 1000, | |
/* | |
|-------------------------------------------------------------------------- | |
| Inject Changes | |
|-------------------------------------------------------------------------- | |
| https://github.com/shakyShane/browser-sync/wiki/options#wiki-injectchanges | |
*/ | |
injectChanges: true, | |
/* | |
|-------------------------------------------------------------------------- | |
| Scroll Proportionally (true|false) | |
|-------------------------------------------------------------------------- | |
| https://github.com/shakyShane/browser-sync/wiki/options#wiki-scrollproportionally | |
*/ | |
scrollProportionally: true, | |
/* | |
|-------------------------------------------------------------------------- | |
| Scroll Throttle (milliseconds) | |
|-------------------------------------------------------------------------- | |
| https://github.com/shakyShane/browser-sync/wiki/options#wiki-scrollthrottle | |
*/ | |
scrollThrottle: 0, | |
/* | |
|-------------------------------------------------------------------------- | |
| Notify (true|false) | |
|-------------------------------------------------------------------------- | |
| https://github.com/shakyShane/browser-sync/wiki/options#wiki-notify | |
*/ | |
notify: true, | |
/* | |
|-------------------------------------------------------------------------- | |
| Host | |
|-------------------------------------------------------------------------- | |
| https://github.com/shakyShane/browser-sync/wiki/options#wiki-host | |
*/ | |
host: null, | |
/* | |
|-------------------------------------------------------------------------- | |
| Excluded File Types | |
|-------------------------------------------------------------------------- | |
| https://github.com/shakyShane/browser-sync/wiki/options#wiki-excludedfiletypes | |
*/ | |
excludedFileTypes: [], | |
/* | |
|-------------------------------------------------------------------------- | |
| Reload Delay | |
|-------------------------------------------------------------------------- | |
| https://github.com/shakyShane/browser-sync/wiki/options#wiki-reloadDelay | |
*/ | |
reloadDelay: 0 | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment