bs-fullscreen-message

1.1.0 • Public • Published

bs-fullscreen-message

Overlay a fullscreen message to all browsers

Useful for showing errors from webpack/browserify/gulp etc

Install

npm i browser-sync bs-fullscreen-message

Usage

var browserSync = require('browser-sync').create();
 
browserSync.init({
    server: 'test/fixtures',
    plugins: ['bs-fullscreen-message']
});
 
// Emit an event to connected clients
setTimeout(function () {
    browserSync.sockets.emit('fullscreen:message', {
        title: "Hello from Example",
        body:  '10 seconds have elapsed!'
    });
}, 5000);

Example from webpack.babel recipe

Checkout the example here https://github.com/BrowserSync/recipes/blob/master/recipes/webpack.babel/app.js

fullscreen

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    1,767
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    1,767
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    1

Package Sidebar

Install

npm i bs-fullscreen-message

Weekly Downloads

1,768

Version

1.1.0

License

MIT

Last publish

Collaborators

  • shakyshane