Ignore gives you the possibility to ignore certain files or url's from being handled by connect-livereload. If you need liveReload on static html files, then place it before the static routes. In your connect or express application add this after the static and before the dynamic routes. grunt-contrib-connect or grunt-contrib-watch.Ĭonnect-livereload itself does not serve the livereload.js script. This middleware can be used with a LiveReload module e.g. Note: if you use this middleware, you should make sure to switch off the Browser LiveReload Extension if you have it installed. Install npm install connect-livereload-https -save-dev If you are happy with a browser plugin, then you don't need this middleware. This file was generated on Thu 10:58:04.Connect middleware for adding the livereload script to the response.
0 Comments
Leave a Reply. |