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 in public/
npm run compress-images
: run a script that combs through image files in images/
and optimizes them, outputting the compressed assets in public/assets/images
. The image compressions settings can be tweaked in resize_images.js
(defaults to height 500). The script will output file names along with resized dimensions to the terminalThe 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
.