Skip to content

Add transform option to plugin #113

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;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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