Skip to content

Commit 34ce044

Browse files
committed
docs: new default options
1 parent 863bac1 commit 34ce044

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

lib/default-config.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
* @module BrowserSync.options
33
*/
44
module.exports = {
5+
6+
/**
7+
* @property cwd
8+
* @type string
9+
* @since 2.23.0
10+
*/
11+
512
/**
613
* Browsersync includes a user-interface that is accessed via a separate port.
714
* The UI allows to controls all devices, push sync updates and much more.
@@ -35,6 +42,35 @@ module.exports = {
3542
*/
3643
watchEvents: ["change"],
3744

45+
/**
46+
* Watch files automatically
47+
* @property watch
48+
* @type Boolean
49+
* @default false
50+
* @since 2.23.0
51+
*/
52+
watch: false,
53+
54+
/**
55+
* Patterns for any watchers to ignore. Anything provided here
56+
* will end up inside `watchOptions.ignored`
57+
* @property ignore
58+
* @type Array
59+
* @default []
60+
* @since 2.23.0
61+
*/
62+
ignore: [],
63+
64+
/**
65+
* Serve an index.html file for all non-asset routes. Useful
66+
* when using client-routers
67+
* @property single
68+
* @type Boolean
69+
* @default false
70+
* @since 2.23.0
71+
*/
72+
single: false,
73+
3874
/**
3975
* File watching options that get passed along to [Chokidar](https://github.com/paulmillr/chokidar).
4076
* Check their docs for available options

0 commit comments

Comments
 (0)