Reputation: 352
I 've been using bower to install client-side dependencies, e.g. jquery and purecss, to my Node.js project. I add the following to my package.json and everything works like a charm - downloading the bower modules at deploy time.
"scripts": { "postinstall": "bower install" }
I was wondering though if it's possible to cache the modules, similar to how node-modules work, so I don't have to download them every-time I deploy my code. Any ideas how to do that?
Upvotes: 2
Views: 896
Reputation: 5600
Heroku support custom cache directoies:
https://devcenter.heroku.com/articles/nodejs-support#cache-behavior
Upvotes: 1
Reputation: 2971
It seems that there is no option to do this in the current nodejs buildpack.
There is a discussion about solving this here: https://github.com/heroku/heroku-buildpack-nodejs/pull/192/files
Upvotes: 1