Configure development and production modes

This commit is contained in:
2022-09-04 17:49:25 +02:00
parent e83a7f2aa4
commit 43ec0eb776
10 changed files with 149 additions and 36 deletions

View File

@@ -1,16 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/thumb.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Control Panel</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>

View File

@@ -1,3 +1,5 @@
import 'vite/modulepreload-polyfill'
import "./app.scss";
import App from "./App.svelte";

View File

@@ -3,5 +3,14 @@ import { svelte } from '@sveltejs/vite-plugin-svelte'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [svelte()]
plugins: [svelte()],
build: {
manifest: true,
rollupOptions: {
input: 'src/main.ts'
}
},
server: {
origin: 'http://localhost:5173'
}
})