forked from CollaboraOnline/online
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tool to automatically reload used .css and .js files. To make it work symlinks are created instead of a copy if browsersync is enabled. 1. install: npm install -g browser-sync 2. use configure option: --enable-browsersync 3. remove loleaflet/dist directory 4. run server: LOOL_SERVE_FROM_FS=1 make run -j10 5. run browsersync: browser-sync start --config browsersync-config.js or make sync-writer Change-Id: Iebee1cc0b9a03bc866954ff33e3cb8a10b48e0af
- Loading branch information
Showing
5 changed files
with
179 additions
and
4 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| 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 | ||
}, | ||
"files": ["loleaflet/dist/**/*.css", "loleaflet/dist/**/*.js"], | ||
"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, | ||
"startPath": "loleaflet/04597b4ec/loleaflet.html?file_path=./test/data/hello-world.odt", | ||
"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 | ||
}; |
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
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
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