Skip to content

Bundle multiple prerender_pages_unbundled() #72

@dgp1130

Description

@dgp1130

I've used multiple prerender_pages() targets to build different pages independently and merge them together with web_resources(). However this isn't ideal, because each prerender_pages() target bundles all its JavaScript independently. This means any shared chunks between multiple prerender_pages() targets won't actually be shared at runtime.

prerender_pages_unbundled() skips the work which should be skipped, but I don't have a good way to run that work later. Maybe we should have a bundle_site() rule which takes multiple prerender_pages_unbundled(), bundles the JavaScript and injects the resources.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions