Features:
- Svelte
- Snowpack with esbuild enabled
- TypeScript
svelte-preprocess
support with Pug and Sass installed by default- Hot module replacement
- Prettier
Limitations:
- Source maps are supported for
.ts
and.svelte
files, but not for the preprocessors used inside.svelte
files - Linting for code-quality rules is not supported. Would need to use ESLint with eslint-plugin-svelte3, but that plugin needs to work with svelte-preprocess (issue)
svelte.svelte-vscode
for Sveltesyler.sass-indented
for Sassesbenp.prettier-vscode
for Prettier
src/main.ts
is built and bundled into build/bundle/
.
If you want to add support for Android/iOS/Electron using Capacitor, read Adding Capacitor to an existing web app. Just make sure to set webDir to "build"
in capacitor.config.json
.
Starts dev server
Builds and bundles
Lint the project
Run svelte-check