Skip to content

Use relative paths and options.paths together #57

Open
@monochromer

Description

@monochromer

We want to use this scenario in our project.

If the path is /common-icons/icon.svg then it must be resolved with options.paths in mind.
If such path is specified ./icon.svg, it should be resolved relatively current location.

Is that possible?
The plugin now searches either only options.paths or only relative paths.

Maybe you should make an option for custom path resolution?

getPath: function(file, url, options) {
  // ...
  return /* some computed url */
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions