Skip to content

File transforms #849

Open
Open
@mbostock

Description

@mbostock

What if you could register data loaders for request patterns? Like could you register optipng as the data loader for all *.png requests and it would auto-optimize every PNG (getting cached)? Or you could write a script to convert PNG to WebP? That would be cool. It’s a bit like parameterized data loaders #245, but you wouldn’t enumerate the parameter values — they would be inferred from files that are already statically referenced, and maybe they would take the input file contents to stdin (or take the file name as the argument?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions