template-webpack icon indicating copy to clipboard operation
template-webpack copied to clipboard

Add more features that are present in the sapper-template

Open alinnert opened this issue 6 years ago • 1 comments

Can you please add a little more build features that already are part of the sapper-template? I think of things like:

  • the static folder (pretty much every app needs static files like icons, images, favicon, webappmanifest, ServiceWorker etc.)
  • the template.html (e.g. to reference some of the static files - it also seems to be a little more flexible than the current public/index.html)
  • and maybe the setup for the ServiceWorker

Alternatively, can you add some documentation how to add these features? It's a little hard to figure out how the sapper-template works. Its webpack config doesn't mention the static folder for instance.

Or does it make more sense to make the sapper-template more flexible? Or to delete not needed features manually? (For my current project I don't need a router and SSR)

alinnert avatar May 10 '19 12:05 alinnert

To answer one of your above questions, if you don't need routing or SSR, just use Svelte on its own rather than Sapper. Sapper is, in essence, a combination of Svelte + SSR + Routing, so adding the ability to remove them would make little sense.

antony avatar Dec 30 '19 00:12 antony