2023-06-12 17:59:46 -07: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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2023-12-10 20:37:03 -08:00
|
|
|
const domain = "saudade.test";
|
|
|
|
const homedir = require("os").homedir();
|
|
|
|
const certdir =
|
|
|
|
homedir + "/Library/Application Support/Herd/config/valet/Certificates/";
|
2023-06-12 17:59:46 -07:00
|
|
|
|
|
|
|
module.exports = {
|
2023-12-10 20:37:03 -08:00
|
|
|
ui: {
|
|
|
|
port: 3001,
|
2023-07-07 16:13:40 -07:00
|
|
|
},
|
2023-12-10 20:37:03 -08:00
|
|
|
watch: true,
|
|
|
|
ignore: [],
|
|
|
|
single: false,
|
|
|
|
watchOptions: {
|
|
|
|
ignoreInitial: true,
|
2023-07-07 16:13:40 -07:00
|
|
|
},
|
2023-12-10 20:37:03 -08:00
|
|
|
server: false,
|
|
|
|
proxy: "https://" + domain,
|
|
|
|
port: 3000,
|
|
|
|
middleware: false,
|
|
|
|
serveStatic: [],
|
|
|
|
ghostMode: {
|
|
|
|
clicks: true,
|
|
|
|
scroll: true,
|
|
|
|
location: true,
|
|
|
|
forms: {
|
|
|
|
submit: true,
|
|
|
|
inputs: true,
|
|
|
|
toggles: true,
|
2023-06-12 17:59:46 -07:00
|
|
|
},
|
2023-07-07 16:13:40 -07:00
|
|
|
},
|
2023-12-10 20:37:03 -08:00
|
|
|
logLevel: "info",
|
|
|
|
logPrefix: "Browsersync",
|
|
|
|
logConnections: false,
|
|
|
|
logFileChanges: true,
|
|
|
|
logSnippet: true,
|
|
|
|
rewriteRules: [],
|
|
|
|
open: false,
|
|
|
|
browser: "default",
|
|
|
|
cors: false,
|
|
|
|
xip: false,
|
|
|
|
hostnameSuffix: false,
|
|
|
|
reloadOnRestart: false,
|
|
|
|
notify: false,
|
|
|
|
scrollProportionally: true,
|
|
|
|
scrollThrottle: 0,
|
|
|
|
scrollRestoreTechnique: "window.name",
|
|
|
|
scrollElements: [],
|
|
|
|
scrollElementMapping: [],
|
|
|
|
reloadDelay: 0,
|
|
|
|
reloadDebounce: 500,
|
|
|
|
reloadThrottle: 0,
|
|
|
|
plugins: [],
|
|
|
|
injectChanges: true,
|
|
|
|
startPath: null,
|
|
|
|
minify: true,
|
|
|
|
host: domain,
|
|
|
|
localOnly: false,
|
|
|
|
codeSync: true,
|
|
|
|
timestamps: true,
|
|
|
|
clientEvents: [
|
|
|
|
"scroll",
|
|
|
|
"scroll:element",
|
|
|
|
"input:text",
|
|
|
|
"input:toggles",
|
|
|
|
"form:submit",
|
|
|
|
"form:reset",
|
|
|
|
"click",
|
2023-07-07 16:13:40 -07:00
|
|
|
],
|
2023-12-10 20:37:03 -08:00
|
|
|
socket: {
|
|
|
|
socketIoOptions: {
|
|
|
|
log: false,
|
2023-06-12 17:59:46 -07:00
|
|
|
},
|
2023-12-10 20:37:03 -08:00
|
|
|
socketIoClientConfig: {
|
|
|
|
reconnectionAttempts: 50,
|
2023-06-12 17:59:46 -07:00
|
|
|
},
|
2023-12-10 20:37:03 -08:00
|
|
|
path: "/browser-sync/socket.io",
|
|
|
|
clientPath: "/browser-sync",
|
|
|
|
namespace: "/browser-sync",
|
|
|
|
clients: {
|
|
|
|
heartbeatTimeout: 5000,
|
2023-06-12 17:59:46 -07:00
|
|
|
},
|
2023-07-07 16:13:40 -07:00
|
|
|
},
|
2023-12-10 20:37:03 -08:00
|
|
|
tagNames: {
|
|
|
|
less: "link",
|
|
|
|
scss: "link",
|
|
|
|
css: "link",
|
|
|
|
jpg: "img",
|
|
|
|
jpeg: "img",
|
|
|
|
png: "img",
|
|
|
|
svg: "img",
|
|
|
|
gif: "img",
|
|
|
|
js: "script",
|
2023-07-07 16:13:40 -07:00
|
|
|
},
|
2023-12-10 20:37:03 -08:00
|
|
|
injectNotification: false,
|
|
|
|
https: {
|
|
|
|
key: certdir + domain + ".key",
|
|
|
|
cert: certdir + domain + ".crt",
|
2023-07-07 16:13:40 -07:00
|
|
|
},
|
2023-12-10 20:37:03 -08:00
|
|
|
};
|