Closed raywang945 closed 9 years ago
How are you accessing the PDF file in the browser? The livereload plugin assumes you're serving up HTML.
I usually view pdf files on Chorme, and it is the default pdf viewer when I click on pdf links on web pages. However, you guide me to think of the actual pdf viewer for Chrome, and it's a Chrome plugin which can be found at chrome://plugins. I think the issue may relate to the pdf viewer plugin.
Well the issue is simple.
The livereload plugin usually injects code into the HTML pages it serves - this code ensures that the pages auto-reload within the browser when the files on disk have changed. With the PDF viewer this wouldn't be possible - so unless you're directly viewing the built output PDF and the viewer supports auto-reloading of a changed file it's not going to aut-reload.
Yeah, thank you for your answer!
I am trying to use gulp-server-liverelad to live reload pdf files, but it doesn't work. My gulpfile.coffee:
Chrome cannot load pdf files unless setting
livereload
tofalse
, is it possible to livereload pdf files?