Browser sync injects old browser-sync-client version after update
See original GitHub issueBrowser sync 2.9.8 is installed:
$ npm ls browser-sync
docdata@0.0.1 /Users/kvcrawford/git/DocData/DocDataWebApp
└── browser-sync@2.9.8
My very basic Browser Sync gulp task:
gulp = require 'gulp'
browserSync = require 'browser-sync'
gulp.task 'sync', ->
browserSync
server: true
startPath: '/dev.html'
files: [
'./*.html'
'./dist/js/**/*.js'
'./dist/**/*.css'
]
Yet the script injected at the top of the page is the wrong version:
<script type='text/javascript' id="__bs_script__">//<![CDATA[
document.write("<script async src='/browser-sync/browser-sync-client.2.8.2.js'><\/script>".replace("HOST", location.hostname));
//]]></script>
This path returns a 404.
Following @sc0ttwad3’s instructions in https://github.com/BrowserSync/browser-sync/issues/791#issuecomment-138741818 resolves the issue.
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Browser Sync not injecting/updating styles #955 - GitHub
I'm using a similar gulpfile to the one on the website. I'm just compiling sass and reloading the styles. The site loads just...
Read more >Browsersync options
Browsersync includes a user-interface that is accessed via a separate port. The UI allows to controls all devices, push sync updates and much...
Read more >Browser-sync not injecting CSS for remote site - Stack Overflow
I need to do CSS styling of a remote site. I can't host the site locally for development, so I'd rather tweak the...
Read more >Browsersync - Twitter
Released browser-sync@2.26.10 - updated dependencies to silence the security warnings BrowserSync is now limitied to Node 8+. If you're still running Node 6 ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Have you cleared your browser cache?
+1