.browsersync.js 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /*
  2. |--------------------------------------------------------------------------
  3. | Browser-sync config file
  4. |--------------------------------------------------------------------------
  5. |
  6. | For up-to-date information about the options:
  7. | http://www.browsersync.io/docs/options/
  8. |
  9. | There are more options than you see here, these are just the ones that are
  10. | set internally. See the website for more info.
  11. |
  12. |
  13. */
  14. module.exports = {
  15. "ui": {
  16. "port": 3001,
  17. "weinre": {
  18. "port": 8080
  19. }
  20. },
  21. "files": [ "examples/playground/*"],
  22. "index": "index.html",
  23. "watchOptions": {},
  24. "server": true,
  25. "proxy": false,
  26. "port": 3000,
  27. "middleware": false,
  28. "serveStatic": ["examples/playground"],
  29. "ghostMode": {
  30. "clicks": true,
  31. "scroll": true,
  32. "forms": {
  33. "submit": true,
  34. "inputs": true,
  35. "toggles": true
  36. }
  37. },
  38. "logLevel": "info",
  39. "logPrefix": "BS",
  40. "logConnections": false,
  41. "logFileChanges": true,
  42. "logSnippet": true,
  43. "rewriteRules": false,
  44. "open": "local",
  45. "browser": "default",
  46. "xip": false,
  47. "hostnameSuffix": false,
  48. "reloadOnRestart": false,
  49. "notify": true,
  50. "scrollProportionally": true,
  51. "scrollThrottle": 0,
  52. "scrollRestoreTechnique": "window.name",
  53. "reloadDelay": 0,
  54. "reloadDebounce": 0,
  55. "plugins": [],
  56. "injectChanges": true,
  57. "startPath": null,
  58. "minify": true,
  59. "host": null,
  60. "codeSync": true,
  61. "timestamps": true,
  62. "clientEvents": [
  63. "scroll",
  64. "input:text",
  65. "input:toggles",
  66. "form:submit",
  67. "form:reset",
  68. "click"
  69. ],
  70. "socket": {
  71. "socketIoOptions": {
  72. "log": false
  73. },
  74. "path": "/browser-sync/socket.io",
  75. "clientPath": "/browser-sync",
  76. "namespace": "/browser-sync",
  77. "clients": {
  78. "heartbeatTimeout": 5000
  79. }
  80. },
  81. "tagNames": {
  82. "less": "link",
  83. "scss": "link",
  84. "css": "link",
  85. "jpg": "img",
  86. "jpeg": "img",
  87. "png": "img",
  88. "svg": "img",
  89. "gif": "img",
  90. "js": "script"
  91. }
  92. };