0.1.1 • Published 10 years ago
ghostmodeify v0.1.1
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-devUsage
var browserify = require('browserify')
var ghostmodeify = require('ghostmodeify')
var b = browserify()
b.add('/path/to/your/source/file.js')
b.plugin(ghostmodeify)
b.bundle().pipe(process.stdout)or
npm install browserify ecstatic -g
ecstatic & browserify index.js -p ghostmodeify > bundle.jsor
npm install watchify ecstatic -g
ecstatic & watchify index.js -p ghostmodeify -o bundle.js -dvwhere
<!-- index.html -->
<body><script src="bundle.js"></script></body>so that index.html is served from localhost.
Roadmap
- Rewride
ghostmodeifyso that it also works whenindex.htmlis just opened through "doubleclick", which needs a change tobrowser-sync. If you want to help with that, drop me a message