browser-sync-connect

0.3.1 • Public • Published

browser-sync-connect

easy way to connect to browser sync without copy and paste the socket.io snippet.

just one line to add the browser-sync script snippts dynamicly:

browserSyncConnect();

regularly i use gulp and gulp connect to run a testserver on port 9000 on my machine and do:

if (window.location.port !== '80' && window.location.port !== '') {
        browserSyncConnect();
}

so the live version will not be browser-synced.

Package Sidebar

Install

npm i browser-sync-connect

Weekly Downloads

0

Version

0.3.1

License

MIT

Last publish

Collaborators

  • soenkekluth