Skip to content

Commit 11018e6

Browse files
committed
add example for notify styles
1 parent ecc6671 commit 11018e6

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

examples/notify-styles.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/**
2+
*
3+
* Install:
4+
* npm install browser-sync
5+
*
6+
* Run:
7+
* node <yourfile.js>
8+
*
9+
*/
10+
11+
"use strict";
12+
13+
var browserSync = require("../").create();
14+
15+
browserSync.init({
16+
open: false, // Stop auto open browser
17+
notify: {
18+
styles: [
19+
'display: none;',
20+
'padding: 6px 15px 3px;',
21+
'position: fixed;',
22+
'font-size: 40px;',
23+
'z-index: 9999;',
24+
'left: 0px;',
25+
'bottom: 0px;',
26+
'color: rgb(74, 74, 74);',
27+
'background-color: rgb(17, 17, 17);',
28+
'color: rgb(229, 229, 229);'
29+
]
30+
},
31+
server: {
32+
baseDir: 'test/fixtures'
33+
}
34+
});

0 commit comments

Comments
 (0)