UNPKG

create-sveltekit-electron-app

Version:
15 lines (12 loc) 306 B
import { sveltekit } from '@sveltejs/kit/vite' import { config } from 'dotenv' import { expand } from 'dotenv-expand' import { defineConfig } from 'vite' expand(config()) const PORT = process.env.PORT! export default defineConfig({ server: { port: parseInt(PORT), }, plugins: [sveltekit()], })