artsy / browserify-dev-middleware

Middleware to compile browserify files on request for development purpose.
MIT License
7 stars 3 forks source link

@craigspaeth: Only attach the 'update' listener once #9

Closed dzucconi closed 9 years ago

dzucconi commented 9 years ago

This moves the update listener into the block where the watcher is created. This handler was getting re-attached on every refresh.

craigspaeth commented 9 years ago

I thought that might be the case! Good catch, this should make development a bit less annoying. :+1: