Are there there any ways of having browserify middleware build and cache a bundle at deploy time?
We're having six different servers behind a load balancer. The first request that hits each servers bundle.js takes ~ 1 - 3 secs to build. Especially in times with frequent deploys this makes the site load quite slow until the bundle is built and cached on each server.
A possible workaround is to actually issue a http request to bundle.js deploy time, but that feels a little too hackish. Any suggestions?
Are there there any ways of having browserify middleware build and cache a bundle at deploy time?
We're having six different servers behind a load balancer. The first request that hits each servers
bundle.js
takes ~ 1 - 3 secs to build. Especially in times with frequent deploys this makes the site load quite slow until the bundle is built and cached on each server.A possible workaround is to actually issue a http request to
bundle.js
deploy time, but that feels a little too hackish. Any suggestions?