Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Sapper export and moving components between pages #974

Open
@Rigo-m

Description

@Rigo-m

I don't know if this is already possible and I'm missing something. I promise everyone that is reading this issue that I've done everything that I could to understand if there is a way to do this but probably my understanding of things is not deep enough.

At work, we often need to build some static html,js and css code that then we zip and send to external companies for them to implement it in a CMS of their choice (mainly to put html into cycles and hydrate texts with translations).
I would've loved to use Sapper to build the code and make us of svelte handy logic, but if I sapper export the code and then, for example, move one component html to another page Svelte "deletes" the DOM from that page.
Is there a way to build HTML that could work in any page provided that the .js file is included in the page itself?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions