JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1389
  • Score
    100M100P100Q21348F
  • License MIT

Cache remote assets, locally (automatically).

Package Exports

  • @11ty/eleventy-cache-assets

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@11ty/eleventy-cache-assets) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

eleventy-asset-cache Plugin

Cache remote assets, locally (automatically).

Features

Roadmap

  • Add support for tiered asset requests, e.g. CSS requests background-images and web fonts, for example.

Open Questions

  • flat-cache save method seems to be synchronous, is there a better async one?
  • Our cache stores raw buffers internally, which are pretty bloated compared to the original. Surely there is a more efficient way to do this. Maybe store the files in their original format.