hiddentao / gulp-server-livereload

Gulp plugin to run a local webserver with livereload enabled via socket.io. Also comes with standalone command-line interface.
MIT License
93 stars 28 forks source link

remove <\!DOCTYPE.+>/ fallback #55

Open melono6 opened 6 years ago

melono6 commented 6 years ago

ran into strange issues where this fallback was taking preference and breaking as the script fails to run when placed here

egnartsms commented 6 years ago

Is this going to be merged in? I ran into the same issue: my base HTML document starts with \<!DOCTYPE html>, and the snippet gets injected right after it, before the \<html> tag. So reloading doesn't work. Why does this rule exist at all?