2019-02-12 04:47:24 -06:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
module.exports = {
|
|
|
|
"ui": {
|
|
|
|
"port": 3001
|
|
|
|
},
|
2021-11-03 09:25:15 -05:00
|
|
|
"files": ["browser/dist/**/*.css", "browser/dist/**/*.js", "browser/dist/*.html"],
|
2019-02-12 04:47:24 -06:00
|
|
|
"watchEvents": [
|
|
|
|
"change"
|
|
|
|
],
|
|
|
|
"watch": false,
|
|
|
|
"ignore": [],
|
|
|
|
"single": false,
|
|
|
|
"watchOptions": {
|
|
|
|
"ignoreInitial": true
|
|
|
|
},
|
|
|
|
"server": false,
|
|
|
|
"proxy": "http://localhost:9980/",
|
|
|
|
"port": 3000,
|
|
|
|
"middleware": false,
|
|
|
|
"serveStatic": [],
|
|
|
|
"ghostMode": {
|
|
|
|
"clicks": true,
|
|
|
|
"scroll": true,
|
|
|
|
"location": true,
|
|
|
|
"forms": {
|
|
|
|
"submit": true,
|
|
|
|
"inputs": true,
|
|
|
|
"toggles": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"logLevel": "info",
|
|
|
|
"logPrefix": "Browsersync",
|
|
|
|
"logConnections": false,
|
|
|
|
"logFileChanges": true,
|
|
|
|
"logSnippet": true,
|
|
|
|
"rewriteRules": [],
|
|
|
|
"open": "local",
|
|
|
|
"browser": "default",
|
|
|
|
"cors": false,
|
|
|
|
"xip": false,
|
|
|
|
"hostnameSuffix": false,
|
|
|
|
"reloadOnRestart": false,
|
|
|
|
"notify": true,
|
|
|
|
"scrollProportionally": true,
|
|
|
|
"scrollThrottle": 0,
|
|
|
|
"scrollRestoreTechnique": "window.name",
|
|
|
|
"scrollElements": [],
|
|
|
|
"scrollElementMapping": [],
|
|
|
|
"reloadDelay": 0,
|
|
|
|
"reloadDebounce": 500,
|
|
|
|
"reloadThrottle": 0,
|
|
|
|
"plugins": [],
|
|
|
|
"injectChanges": true,
|
2021-11-03 09:25:15 -05:00
|
|
|
"startPath": "browser/04597b4ec/cool.html?file_path=./test/data/hello-world.odt",
|
2019-02-12 04:47:24 -06:00
|
|
|
"minify": true,
|
|
|
|
"host": null,
|
|
|
|
"localOnly": false,
|
|
|
|
"codeSync": true,
|
|
|
|
"timestamps": true,
|
|
|
|
"clientEvents": [
|
|
|
|
"scroll",
|
|
|
|
"scroll:element",
|
|
|
|
"input:text",
|
|
|
|
"input:toggles",
|
|
|
|
"form:submit",
|
|
|
|
"form:reset",
|
|
|
|
"click"
|
|
|
|
],
|
|
|
|
"socket": {
|
|
|
|
"socketIoOptions": {
|
|
|
|
"log": false
|
|
|
|
},
|
|
|
|
"socketIoClientConfig": {
|
|
|
|
"reconnectionAttempts": 50
|
|
|
|
},
|
|
|
|
"path": "/browser-sync/socket.io",
|
|
|
|
"clientPath": "/browser-sync",
|
|
|
|
"namespace": "/browser-sync",
|
|
|
|
"clients": {
|
|
|
|
"heartbeatTimeout": 5000
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tagNames": {
|
|
|
|
"less": "link",
|
|
|
|
"scss": "link",
|
|
|
|
"css": "link",
|
|
|
|
"jpg": "img",
|
|
|
|
"jpeg": "img",
|
|
|
|
"png": "img",
|
|
|
|
"svg": "img",
|
|
|
|
"gif": "img",
|
|
|
|
"js": "script"
|
|
|
|
},
|
|
|
|
"injectNotification": false
|
2021-10-26 08:23:28 -05:00
|
|
|
};
|