5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-07 02:11:28 +08:00
wails/v3/internal/templates/sveltekit/frontend/vite.config.js
Atterpac 6870e916bb
[V3 Templates] Add Sveltekit and Sveltekit TS templates (#3829)
* node runtime parity

* Add sveltekit templates

changelog

update svelte config

* Update v3/internal/templates/sveltekit-ts/template.json

* Update v3/internal/templates/sveltekit/template.json

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2024-10-20 13:26:51 +11:00

17 lines
402 B
JavaScript

import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig, searchForWorkspaceRoot } from 'vite';
export default defineConfig({
server: {
fs: {
allow: [
// search up for workspace root
searchForWorkspaceRoot(process.cwd()),
// your custom rules
'./bindings/*',
],
},
},
plugins: [sveltekit()]
});