UNPKG

781 BJavaScriptView Raw
1
2"use strict";
3
4const bs = require( "browser-sync" ).create();
5
6bs.init( {
7 server: {
8 baseDir : "./docs/html/latest",
9 directory : false,
10 },
11 port : 8080,
12 watchEvents : [ "add", "change" ],
13 watchOptions : {
14 ignoreInitial : true,
15 usePolling : true,
16 interval : 600,
17 },
18 ui: {
19 port: 8081,
20 },
21 // files : [ "./docs/html/latest/**/*" ],
22 // files : [ "./docs/html/latest" ],
23 // logLevel : "debug",
24 files: [
25 {
26 match : [ "./docs/html/latest/**/*" ],
27 fn : function () {
28
29 this.reload();
30 },
31 },
32 ],
33
34 // Logging
35 // logLevel : "debug",
36 // logConnections : true,
37 // logFileChanges : true,
38
39 open : false,
40 // reloadDebounce: 1000,
41 // reloadThrottle: 4000,
42 reloadDelay : 1500,
43 notify : false,
44} );