ghostmodeify
prepend browsersync-client script tag to bundle.js
It will enable ghost-mode
to synchronize clicks
, scrolls
, location
and 'form' events across connected webviews (browsers, ...)
Install
npm install ghostmodeify --save-dev
Usage
var browserify = var ghostmodeify = var b = bbb
or
npm install browserify ecstatic -gecstatic & browserify index.js -p ghostmodeify > bundle.js
or
npm install watchify ecstatic -gecstatic & watchify index.js -p ghostmodeify -o bundle.js -dv
where
<!-- index.html -->
so that index.html
is served from localhost
.
Roadmap
- Rewride
ghostmodeify
so that it also works whenindex.html
is just opened through "doubleclick", which needs a change tobrowser-sync
. If you want to help with that, drop me a message