Skip to content
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.

Template for client-only PWAs ? #78

Closed
0gust1 opened this issue Sep 8, 2018 · 4 comments
Closed

Template for client-only PWAs ? #78

0gust1 opened this issue Sep 8, 2018 · 4 comments

Comments

@0gust1
Copy link

0gust1 commented Sep 8, 2018

Hi,

A small open question : I plan to use sapper-template to experiment with client-side only PWAs. First for myself and small projects, but it also could be interesting to other people.

What would be the best way ?

  • maintaining a boilerplate as a subset of this template
    • in this case, is a shell script modifying this template a good idea ? (trimming the serverside/SSR part)
  • starting from scratch

It could be saw as a dumb question :) but I find the neat build configuration and tooling packed with the sapper template very useful and well done.

@Rich-Harris
Copy link
Member

I'm not sure it's currently possible at present, because the SSR is fairly integral to Sapper. But there's an issue for adding an SPA mode which would probably make all this very easy: sveltejs/sapper#383

@frederikhors
Copy link

It would be awesome also for me.

@0gust1, any news?

@0gust1
Copy link
Author

0gust1 commented May 8, 2019

@frederikhors not for now :)
Didn't have much time, and as the v3 of svelte is out now, it's maybe a good idea to wait a little that the ecosystem stabilize.

You can still easily achieve that using the sapper exportcommand (https://sapper.svelte.dev/docs#Exporting). This is what I use. My concern is just that it's a little cumbersome to trim down the sapper template each time I want to experiment a little side project that is completely static on the server-side.

@antony
Copy link
Member

antony commented May 12, 2020

Closing in favour of sveltejs/sapper#383

@antony antony closed this as completed May 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants