Sapper-Fetch-On-Build-Example Svelte Themes

Sapper Fetch On Build Example

Shows how to fetch data before building using Sapper. Inspiration and idea taken from svelte site.

##Sapper Fetch On Build Example

Demo

A simple example showcasing how to make on export/build fetches get fetched and made static. Uses a script to fetch data before building. Look in scripts/get-starships.js to see the implementation.

To run:

# Develop
npm run update && npm run dev

# Export
npm run export && npm run export

Top categories

Loading Svelte Themes