Skip to content

Add transform option to plugin #113

@darthgoldstein

Description

@darthgoldstein

The idea here is to make the plugin a bit more robust by the allowing the user of the plugin to transform the file along the way when copying.

The way I envision this field is that its value will be a callback with the file file path and content as its parameters. It will return the content that will be copied to the to destination.

{
    from: string;
    to: string;
    transform: (fromPathResolved: string, fileContent: Buffer) => string | Buffer;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions