forked from WordPress/wporg-news-2021
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbs-config.js
31 lines (25 loc) · 856 Bytes
/
bs-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// See http://www.browsersync.io/docs/options/
const paths = {
theme: 'source/wp-content/themes/wporg-news-2021',
globalHeaderFooter: 'source/wp-content/mu-plugins/wporg-mu-plugins/mu-plugins/blocks/global-header-footer'
};
// Any file of these types in any subdirectory
const watchedFilesPattern = '/**/*.(php|js|html|css|svg|png)';
module.exports = {
/*
* This is disabled so that BrowserSync can run on any URL, which is needed to support multiple development
* environments.
*/
'snippet': false,
// Avoid conflicts with other running tasks.
// Can't be auto-detected because has to match injected port in `0-sandbox.php`.
'port': 3008,
"files": [
paths.theme + '/theme.json',
paths.theme + watchedFilesPattern,
paths.globalHeaderFooter + watchedFilesPattern
],
"open": false,
"reloadOnRestart": true,
"notify": false,
};