File tree 1 file changed +24
-8
lines changed
1 file changed +24
-8
lines changed Original file line number Diff line number Diff line change 3
3
*/
4
4
module . exports = {
5
5
6
- /**
7
- * Current working directory
8
- * @property cwd
9
- * @type String
10
- * @since 2.23.0
11
- */
12
-
13
6
/**
14
7
* Browsersync includes a user-interface that is accessed via a separate port.
15
8
* The UI allows to controls all devices, push sync updates and much more.
@@ -44,7 +37,11 @@ module.exports = {
44
37
watchEvents : [ "change" ] ,
45
38
46
39
/**
47
- * Watch files automatically
40
+ * Watch files automatically - this should be used as an
41
+ * alternative to the `files` option. When this option is used, some directories
42
+ * will be ignored automatically such as `node_modules` `bower_components` `.sass-cache`
43
+ * `.vscode` `.git` `.idea`
44
+ *
48
45
* @property watch
49
46
* @type Boolean
50
47
* @default false
@@ -173,6 +170,25 @@ module.exports = {
173
170
* @since 2.18.0
174
171
*/
175
172
173
+ /**
174
+ * Current working directory
175
+ * @property cwd
176
+ * @type String
177
+ * @since 2.23.0
178
+ */
179
+
180
+ /**
181
+ * Register callbacks via a regular option - this can be used
182
+ * to get access the Browsersync instance in situations where you
183
+ * cannot provide a callback via the normal API (for example, in a Gruntfile)
184
+ *
185
+ * **Note**: Only the `ready` callback is currently supported here.
186
+ *
187
+ * @property callbacks
188
+ * @type Object
189
+ * @param {Function } ready
190
+ */
191
+
176
192
/**
177
193
* Clicks, Scrolls & Form inputs on any device will be mirrored to all others.
178
194
* @property ghostMode
You can’t perform that action at this time.
0 commit comments