https://github.com/stabldev/coreproject-seeder
A seeder soft. for CoreProject
https://github.com/stabldev/coreproject-seeder
Last synced: 8 months ago
JSON representation
A seeder soft. for CoreProject
- Host: GitHub
- URL: https://github.com/stabldev/coreproject-seeder
- Owner: stabldev
- Created: 2025-01-15T10:39:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-15T10:52:47.000Z (over 1 year ago)
- Last Synced: 2025-06-16T01:41:32.002Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 58.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
SvelteKit + Electron template
===
This repo contains two configurations for setting up SvelteKit with Electron.
1. The `main` branch uses `mainWindow.loadFile`
2. The `serve` branch uses [electron-serve](https://github.com/sindresorhus/electron-serve)
Both rely on `prerender=true` and `ssr=true` in the Svelteit layout config.
The `prerender=true` option creates the HTML on build and `ssr=true` tells SvelteKit which page to load. Without the `ssr` option, SvelteKit will rely on `location.pathname` to know which route it is loading when pointed to an arbitrary HTML file. The file protocol based route does not work well with this logic so you need the route-information to be rendered server-side.
```sh
npm i
```
```sh
npm run build:svelte
npm run dev:electron
```