A template for building static content with Svelte. Replace TODO
s to fill out the template.
npm install
: install packagesnpm run dev
: spin up a hot-reloading dev server to preview the contentnpm run build
: build the production bundle inpublic/
npm run compress-images
: run a script that combs through image files inimages/
and optimizes them, outputting the compressed assets inpublic/assets/images
. The image compressions settings can be tweaked inresize_images.js
(defaults to height 500). The script will output file names along with resized dimensions to the terminal
The site content lives in src/Index.svelte
. You can import other Svelte modules and use CSS or SASS. The content is rendered, minified, and written to a static file in src/index.js
.