Closed thiago closed 6 years ago
Agreed. grunt-contrib-connect handles the libreload attribute different than libreload.js. grunt-contrib-connect always expects a number. But it should accept either a number or an object.
To get libreload working on https on an alternate port, I patched my local copy near TODO comment at line 135 of /tasks/connect.js with
var port = (typeof options.livereload === 'object' && options.livereload.port) ? options.livereload.port : livereload;
middleware.unshift(injectLiveReload({port: port }));
Duplicate of #100.
Hello, I need specify a new src to livereload script loaded from my page to use a proxy.
Reading the livereload documentation I see that is possible, but from grunt-contrib-connect options It's not possible.
My sugestion is change the conditions to receive complete livereload options too if it is passed.
Example:
ps: Sorry my english is very bad!