var assetManager = require('connect-assetmanager'); assetManager(assets)
Both changes assume that the asset groups only needs to be initialized once.
- make settings variable local to the module so that assetManager() (…
…no args) would just use whatever that was previously init
- make cacheHashes and cacheTimestamps local to the module so that they are properly populated and accessible
throw exception if no asset groups exists
remove extra spaces