Dust.Fetcher.CSS (Dust v0.0.2-dev) View Source

CSS fetcher does the following things

  1. Extracts all image urls from css assets,
  2. Downloads all images,
  3. Extends and returns assets with new images.

For each assets[:css] -> extract urls -> Fetcher.fetch() -> Append to assets[:image]

Link to this section Summary

Functions

Extract all urls for images from css files then merge them all into main assets list.

Link to this section Functions

Specs

fetch(list(), Dust.Requests.State.t()) :: list() | keyword()

Extract all urls for images from css files then merge them all into main assets list.