svelte-electron Svelte Themes

Svelte Electron

A sample electron app made with Svelte & Webpack. Routing and Lazy Loading included

Svelte + Webpack + Electron

Available Scripts

In the project directory, you can run:

npm run electron-dev

Runs the electron app in the development mode.
The Electron app will open automatically.

Note: Linux users if you're getting an error it's likely you need to follow this issue

The app will reload if you make edits.
You will also see any lint errors in the console.

npm run electron-pack

Will be added soon (via electron-builder)

Adding environment variables

For adding environment variables, you can create a copy of the .env.example file, rename it to .env and then add your own variables. Will add support for multiple .env files soon

Todos:

  • Add Navbar component for route navigation
  • Add environment variables support
  • Import component based .svelte files dynamically (add a loader as well)
  • Add emotion based styling (enhancement)

Top categories

Loading Svelte Themes