Skip to content

Is there Any ways to extract a separate file for createContentLoader data #4685

Open
@lemonicy

Description

@lemonicy

Is your feature request related to a problem? Please describe.

My website has many posts, and data generated by createContentLoader function can take up more than 90% of theme.xxxxxxxx.js file size. However, these contents only attract 15% users but the rest 85% users must download these data which are useless for them.

Describe the solution you'd like

Now vitepress has a site config option named metaChunk, maybe you can incorporate these contents into metadata.xxxxxxxx.js

Describe alternatives you've considered

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    need more infoFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions