Skip to content

Run transformation after vite replaces asset paths #67

@cfq

Description

@cfq

I'm trying to fix the problem referenced in this issue: vitejs/vite#7362, ie. trying to add the full site URL in front of the og:image image path.

I've tried a few things such as writing a transfrom but it runs before vite middleware, and wrote a vite plugin but that also ran just before asset paths were replaced, so asset paths are seen as __VITE_ASSET__BAZUZ5RZ__, which doesn't help either. Is there a way I can run a transform after vite is done with the final output?

Metadata

Metadata

Assignees

No one assigned

    Labels

    open-questionFurther information is requested from the original poster.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions