[Deprecated] User Webpack
CoffeeScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
coffee
.gitignore
.npmignore
README.md
package.json
test.coffee

README.md

Devtools Reloader Station

Installlation

npm install -g devtools-reloader-station

Usage

# load and start server
station = require 'devtools-reloader-station'
station.start()
# trigger tab reload
station.reload 'pieces of url'

Here's how I use it in my project: https://gist.github.com/jiyinyiyong/10336012

Notice that you need devtools-reloader-crx running in Chrome to use this.

Or you may trigger reload event by yourself:

net = require 'net'
pattern = 'http repo todolist'
# patterns = pattern.split(' ')
client = net.connect port: 8888, ->
  client.write 'pattern'

The Chrome Extension will find all tabs whose urls contain the patterns and reload them.

License

MIT