Skip to content

ryands17/svelte-electron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published