Scaffold pinned Svelte frontend toolchain
Add a strict TypeScript and Vite workspace with reproducible Node, npm, and dependency versions plus Make targets for checking and building it.
This commit is contained in:
parent
6bc08bd7bf
commit
84ccfdb445
1 changed files with 1433 additions and 1 deletions
15
web/vite.config.ts
Normal file
15
web/vite.config.ts
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [svelte()],
|
||||
build: {
|
||||
manifest: true,
|
||||
sourcemap: true
|
||||
},
|
||||
server: {
|
||||
proxy: {
|
||||
'/api': 'http://127.0.0.1:8080'
|
||||
}
|
||||
}
|
||||
});
|
||||
Loading…
Reference in a new issue