Skip to content

[fontless] Allow config for asset url base directory (Laravel) #756

Description

@bumbummen99

🆒 Your use case

Frameworks like Laravel put their Vite build into a subdirectory (/build) within the public directory of the HTTP server. This can not be handled by assets.prefix since this configuration option does also change where the fonts are downloaded within the /build subdirectory.

🆕 The solution you'd like

I would like to be able to configure where the Vite build is within the HTTP servers public directory.
This should affect the following line:

let rendered = `url("${src.url}")`

🔍 Alternatives you've considered

forking and hardcoding

ℹ️ Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions