Created
February 23, 2017 12:34
-
-
Save richellyitalo/4274102c986656fe5a84a54e214ce864 to your computer and use it in GitHub Desktop.
Browser sync to run with PHP Files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
|-------------------------------------------------------------------------- | |
| 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. | |
| | |
| | |
*/ | |
/*browser-sync start --config bs-config.js*/ | |
module.exports = { | |
"ui": { | |
"port": 3001, | |
"weinre": { | |
"port": 8080 | |
} | |
}, | |
"files": ["*.css", "css/*.css", "js/*.js", "app/js/*.js", "*.php"], | |
"watchOptions": {}, | |
"server": false, | |
"proxy": false, | |
"port": 3000, | |
"middleware": false, | |
"serveStatic": [], | |
"ghostMode": { | |
"clicks": true, | |
"scroll": true, | |
"forms": { | |
"submit": true, | |
"inputs": true, | |
"toggles": true | |
} | |
}, | |
"logLevel": "info", | |
"logPrefix": "BS", | |
"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": 0, | |
"reloadThrottle": 0, | |
"plugins": [], | |
"injectChanges": true, | |
"startPath": null, | |
"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" | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment