

spdy) ( -no-css-inject to reload page on css change instead of injecting the changes ( Dependencies updated to get rid of vulnerabilities in deps -https-module=MODULE_NAME to specify custom HTTPS module (e.g.We welcome contributions! See CONTRIBUTING.md for details.
Alternative to livereload full#
CSS files can be refreshed without a full page reload by finding the referenced stylesheets from the DOM and tricking the browser to fetch and parse them again. This script establishes the web socket connection and listens to the reload requests.
Alternative to livereload code#
In order for the client side to support this, the server injects a small piece of JavaScript code to each requested html file. It also watches the files for changes and when that happens, it sends a message through a web socket connection to the browser instructing it to reload. The server is a simple node app that serves the working directory and its subdirectories. Where MS is time in milliseconds to wait before issuing a reload.

Reload works but changes are missing or outdated.If it’s still not working, file an issue. Note that you will need a browser that supports WebSockets. Open your browser’s console: there should be a message at the top stating that live reload is enabled.The keys are the same as the keys in options for tls.createServer.

The module must export an object that will be used to configure a HTTPS server. In order to enable HTTPS support, you’ll need to create a configuration module. Var liveServer = require ( "live-server" ) var params = liveServer. If a file ~/.live-server.json exists it will be loaded and used as default options for live-server on the command line.
Alternative to livereload install#
gulp.Npm install # Local dependencies if you want to hack The general idea is that you set a watch task on your files that you want livereloading and then reload on changes. In either case, instead of invoking livereload within tasks, handle livereloading within the task that sets up your server. The alternative is to use gulp-connect which will make what you're trying to do much easier. Have you thought about maybe using an instance of express with livereload? There may be a better way to do what you want to do.
