This template is outdated and superseeded by many others, such as electron-vite or setups using vite-plugin-electron-x.
Get up and running with 💪 Svelte & ⚡ Electron.
opinionated svelte & electron boilerplate
- clone this repo & cd
npm install
npm run boot
to run dev enviroment- to bundle and build app, check
package.json
for build scripts / use electron builder
src/index.js
- Main electron process.src/svelte.js
- Svelte app entrypoint.src/components
- Svelte componentssrc/preload.js
- Electron preload scriptpublic/global.css
- Global css filepublic/build
- bundled js and css files by svelte
- electron and svelte
- rollupjs with multiple plugins and svelte-preprocess for ts support
- electron-builder to build & package app
- electron-reload with custom config for blazing fast reload
- @electron/remote to access main process apis in preload
- build on the electron-forge-svelte. thanks, fireship.io