Configure development and production modes
This commit is contained in:
@@ -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>
|
||||
@@ -1,3 +1,5 @@
|
||||
import 'vite/modulepreload-polyfill'
|
||||
|
||||
import "./app.scss";
|
||||
import App from "./App.svelte";
|
||||
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user