Skip to content

Commit

Permalink
feat(options): added reloadOnRestart option - #369
Browse files Browse the repository at this point in the history
  • Loading branch information
shakyShane committed Jan 10, 2015
1 parent c6936bd commit b1bcfa8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 0 additions & 2 deletions lib/cli/cli-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ var tfunk = require("tfunk");
var program = require("commander");
var merge = require("opt-merger").merge;

module.exports.allowedOptions = ["host", "server", "proxy"];

/**
* Handle command-line usage with 'start'
* @param args
Expand Down
3 changes: 2 additions & 1 deletion lib/cli/opts.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
"--no-notify": "Disable the notify element in browsers",
"--no-open": "Don't open a new browser window",
"--no-ghost": "Disable Ghost Mode",
"--no-online": "Force offline usage"
"--no-online": "Force offline usage",
"--no-reloadOnRestart": "Don't auto-reload all browsers following a restart"
}
8 changes: 8 additions & 0 deletions lib/default-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,14 @@ module.exports = {

hostnameSuffix: false,

/**
* Reload each browser when BrowserSync is restarted.
* @property reloadOnRestart
* @type Boolean
* @default true
*/
reloadOnRestart: true,

/**
* The small pop-over notifications in the browser are not always needed/wanted.
* @property notify
Expand Down

0 comments on commit b1bcfa8

Please sign in to comment.