Skip to content

Allow replacement function to access the relativePath #4

@alexeagle

Description

@alexeagle

This plugin is just what I need - except part of what I need to replace in my file is the relative path to the file being processed (for a <script> tag insertion based on the current directory).
Could you provide some config to make this possible?

Note, the processString method

ReplaceFilter.prototype.processString = function (string) {

takes the relativePath as a second parameter, so this doesn't seem too hard to wire up in that location (no change to applause)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions