Svelte template
Decent template for Svelte apps built with Vite.
Included features:
- Bulma + Sass for styling with proper variable exports
- PurgeCSS with custom Svelte extractor + postcss-discard-comments for style minification
- Custom alias resolvers for Vite and Sass which allow
@-
and~-
style imports (~bulma
,@components
)
To create a new project using this template degit
can be used:
degit renbou/svelte-template svelte-app
cd svelte-app
How to
-
Install deps using
pnpm install
and runpnpm start
to launch thevite
dev server andsvelte-check
watcher. -
Compile and serve in production using
pnpm build
andpnpm serve
. By defaultserve
launchessirv
in SPA mode, if the built app isn't an SPA then remove--single
argument from the script.