svind
svind copied to clipboard
:twisted_rightwards_arrows: A boilerplate with the Svind stack (Svelte, Vite, Vercel and Tailwind)
Svind
Description
The Svind stack (Svelte, Vite, Vercel, Tailwind) brings a whole new DX. This boilerplate aims to bring this experience to you with everything already setup with a few extras (such as full PWA support with custom service worker).
Goals
- Vite with HMR
- PWA
- Notification prebuilt when a new version has been downloaded by the service worker
- Icons and
manifest.jsonautomatically generated from configuration files and an image when building for production - Automatically updates the meta tags of the
index.htmlwhen building for production
- SEO
- 100/100/100/100 lighthouse score by default
- Easy meta tags thanks to built in Svelte support
sitemap.xmlgenerated on demand via a now function
- Service worker
- Easy to understand, no fancy library
- Fully customizable
- Support for all the different fetching methods
- Precaches all the files and routes once the web app has loaded
- Automatically updates on build via Gulp (cache name and precached files)
- CSS
- Integrated Tailwind CSS
- With dark/light mode support
- and a few other things
- Purged and nano-tized when building for production
- Integrated Tailwind CSS
- Router
- Dynamic route import for code splitting
- Images
webpversion of your images generated automatically- Component pre created to support both the original image and the
webpversion - Automatic image optimization when building for production
- Vercel
- Example functions and integration
- To make it work properly, you'll need to change the settings on your project page on https://vercel.com to
- Build command:
yarn build - Deploy folder:
dist - Development command:
yarn dev --port $PORT
- Build command:
- CI
- Basic build test on push
Setup
git clone https://github.com/gawlk/svind
cd svind
yarn