-
Notifications
You must be signed in to change notification settings - Fork 0
/
bs-config.js
36 lines (33 loc) · 916 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
32
33
34
35
36
/* eslint-disable */
/*
|--------------------------------------------------------------------------
| Browser-sync config file
|--------------------------------------------------------------------------
|
| For up-to-date information about the options:
| http://www.browsersync.io/docs/options/
|
| There are more options than you see here, these are just the ones that are
| set internally. See the website for more info.
|
|
*/
const env = process.env.NODE_ENV;
const isStaging = env === 'staging';
module.exports = {
"files": [
'public/**/*.html',
'public/static/**/*.{jpg,png,gif,svg}',
'public/static/css/**/*.css',
'public/static/js/**/*.js'
],
"injectChanges": true,
"middleware": isStaging ? [require('compression')()] : [],
"notify": false,
"open": false,
"port": isStaging ? 3003 : 3000,
"reloadThrottle": 300,
"server": {
"baseDir": "public"
},
};