Skip to content

IMPROVEMENT: add an arg to skip non svg files #250

@alefwd

Description

@alefwd

I have a folder /assets where I have a mix of svgs and json files, and I cannot change this. I would like to be able to apply the vector_graphics_compiler transformation to the folder.
When I tried something like:

    - path: assets/
      transformers:
        - package: vector_graphics_compiler

I received exceptions relative to transforming the json files.

What I propose is either to skip non svg files by default, or to enable it using an arg:

    - path: assets/
      transformers:
        - package: vector_graphics_compiler
           args: ['--svg-only']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions