0.6.8 • Published 7 years ago

@buxlabs/hot-reload v0.6.8

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

hot-reload

Codeship Status for buxlabs/hot-reload

npm version

npm install @buxlabs/hot-reload

websocket server for hot reloads in single page apps

The server acts as a proxy - it emits received data as an ws event that can be listened to in a front-end app

start

The server works on port 10009 by default, to start it run:

node bin/ws

To override the port simply:

PORT=12345 node bin/ws

motivation

Watching dist files is a common solution for hot reload, it has some disadvantages though:

  • it might have an uncomfortable latency for bigger apps or consume a lot of memory/cpu usage,
  • it's tricky to test

The second server approach lets you:

  • keep websocket dependency out of your app,
  • ignore file watching by sending a request on save instead
0.6.8

7 years ago

0.6.7

7 years ago

0.6.6

7 years ago

0.6.5

7 years ago

0.6.4

7 years ago

0.6.3

7 years ago

0.6.2

7 years ago

0.6.1

7 years ago

0.6.0

7 years ago

0.5.4

7 years ago

0.5.3

7 years ago