40kb limit on html files
Closed this issue · 5 comments
I'm using grunt-contrib-connect
and when I have an html file that is bigger than 40kb, the livereload snippet is not being inserted.
Here's the issue on the grunt-contrib-connect side: gruntjs/grunt-contrib-connect#20 (comment)
I tried to reproduce this, but couldn't. Therefore I added new tests with really large files:
https://github.com/intesso/connect-livereload/blob/master/test/app.render.large-file.js
...but the script still get's inserted correctly.
Could you provide a test or make your configuration publicly available, so that I can reproduce it?
I'm able to reproduce here: https://gist.github.com/jgallen23/8029557
looks like grunt-contrib-connect points to connect-livereload v2.0. could that be the issue?
yup, this could well be. can you manually install the latest version (v0.3.1)?
cd node_modules/grunt-contrib-connect
npm install connect-livereload
and test again?
yep, that fixed it. Thanks. I'll update the other issue to let them know to update their dependency.