Starting up /biking/ svelte app for minimo.io

This commit is contained in:
minimo-io 2024-02-20 16:47:48 -03:00
parent 7b910ec0bd
commit 77a53f4a06
4 changed files with 4 additions and 3 deletions

View File

@ -7,7 +7,7 @@
<title>Vite + Svelte</title>
</head>
<body>
<div id="app"></div>
<div id="biking-app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>

View File

@ -39,7 +39,7 @@ h1 {
padding: 2em;
}
#app {
#biking-app {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;

View File

@ -2,7 +2,7 @@ import './app.css'
import App from './App.svelte'
const app = new App({
target: document.getElementById('app'),
target: document.getElementById('biking-app'),
})
export default app

View File

@ -3,5 +3,6 @@ import { svelte } from '@sveltejs/vite-plugin-svelte'
// https://vitejs.dev/config/
export default defineConfig({
base: "/biking/",
plugins: [svelte()],
})