module Roda::RodaPlugins::AssetsPreloading::InstanceMethods

def _preload_assets_array(assets)

types and/or groups.
Return an array of paths/as pairs for the given asset
def _preload_assets_array(assets)
  assets.map do |type|
    paths = assets_paths(type)
    type = type[0] if type.is_a?(Array)
    as = TYPE_AS[type]
    paths.map{|path| [path, as]}
  end.flatten(1)
end