Skip to content

Instantly share code, notes, and snippets.

@Sulcalibur
Last active August 29, 2015 14:01
Show Gist options
  • Save Sulcalibur/4b1b3065ccf17496fb13 to your computer and use it in GitHub Desktop.
Save Sulcalibur/4b1b3065ccf17496fb13 to your computer and use it in GitHub Desktop.
Browser Sync Config File
/*
|--------------------------------------------------------------------------
| Browser-sync config file
|--------------------------------------------------------------------------
|
| Please report any issues you encounter:
| https://github.com/shakyShane/browser-sync/issues
|
| For up-to-date information about the options:
| https://github.com/shakyShane/browser-sync/wiki/Working-with-a-Config-File
|
| $ browser-sync start --config bs-config.js
|
*/
module.exports = {
/*
|--------------------------------------------------------------------------
| Files to watch
|--------------------------------------------------------------------------
| https://github.com/shakyShane/browser-sync/wiki/options#wiki-files
*/
files: [
"assets/styles/*.css",
"assets/js/*.js",
"assets/images/*.svg",
"assets/images/*.png",
"assets/images/*.jpg"
],
/*
|--------------------------------------------------------------------------
| Directories or files to exclude
|--------------------------------------------------------------------------
| https://github.com/shakyShane/browser-sync/wiki/options#wiki-exclude
*/
exclude: false,
/*
|--------------------------------------------------------------------------
| Server
|--------------------------------------------------------------------------
| https://github.com/shakyShane/browser-sync/wiki/options#wiki-server
*/
server: false,
/*
|--------------------------------------------------------------------------
| Proxy
|--------------------------------------------------------------------------
| https://github.com/shakyShane/browser-sync/wiki/options#wiki-proxy
*/
proxy: "sulcalibur.site",
/*
|--------------------------------------------------------------------------
| 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