Skip to content

Compute public URI based on path #1

@kadamwhite

Description

@kadamwhite

I've observed that incorrect URI generation can be a foot gun (why isn't my script loading / I used the wrong function to compute the URI or typo'd a file path), while the structure of a WordPress project is very consistent. We have code in the asset-loader repository which can be used to automatically compute a URI based on a file system path. Could we consider bringing that code into here so that we don't need to specify the URI, only the path?

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