Skip to content

How to use with publicDir support? #136

@Mathbkj

Description

@Mathbkj

So, recently I found out something cool about Vite that lets you serve static assets from a given folder other than public. This tool will make it so you might use absolute paths like '/asset1.svg' to reference the path, instead of '/resources/asset1.svg'. The problem is that SVGR does not recognize that kind of path thus forcing the user to go either with the complete absolute path or relative one. Is there an specific way to deal with that condition using the guidelines?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions