Generate vars.js cache file depending on plugins