I have a bunch of external javascript libraries in my Rails project which are all included in the application.js, so they are precompiled on every deployment to Heroku, which runs for a long time.
Do you have any suggestions how to decrease the asset compilation time, and if possible, without the use of CDN.
Thanks.
For future reference, here are the steps how I solved it:
config.assets.precompile = ['external.js', 'external.css']
(note the = instead of +=)This way, the external.js and external.css are compiled localy and the application.js and application.css compile while deploying. The deployment time is more than two times faster now in my case. It does take some manual work, but could be implemented as a rake.