0.0.2 • Published 8 years ago

chromereload v0.0.2

Weekly downloads
127
License
MIT
Repository
github
Last release
8 years ago

Chromereload

A small chrome extension endpoint for livereload I build for my chrome-extension-kickstarter.

Install

npm install --save-dev chromereload

Features

  • reconnect after livereload restart
  • reduce amout of reloads
  • supports reload of non chrome pages

Usage

Include the module in your chrome extension context (backgroundscript/contentscript/etc.).

import ChromeReload from 'chromereload';

new ChromeReload({
  host: 'localhost'
  port: 35729,
  reconnectTime: 3000 /* ms */
});

For convenience you can also import the lib without configuring it:

import 'chromereload/devonly';

this only works if process.env.NODE_ENV is set to development.