mirror of
https://github.com/minimo-io/appticles.git
synced 2025-06-23 16:05:29 +00:00
Starting up /biking/ svelte app for minimo.io
This commit is contained in:
parent
7b910ec0bd
commit
77a53f4a06
@ -7,7 +7,7 @@
|
|||||||
<title>Vite + Svelte</title>
|
<title>Vite + Svelte</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="biking-app"></div>
|
||||||
<script type="module" src="/src/main.js"></script>
|
<script type="module" src="/src/main.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -39,7 +39,7 @@ h1 {
|
|||||||
padding: 2em;
|
padding: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#app {
|
#biking-app {
|
||||||
max-width: 1280px;
|
max-width: 1280px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
|
@ -2,7 +2,7 @@ import './app.css'
|
|||||||
import App from './App.svelte'
|
import App from './App.svelte'
|
||||||
|
|
||||||
const app = new App({
|
const app = new App({
|
||||||
target: document.getElementById('app'),
|
target: document.getElementById('biking-app'),
|
||||||
})
|
})
|
||||||
|
|
||||||
export default app
|
export default app
|
||||||
|
@ -3,5 +3,6 @@ import { svelte } from '@sveltejs/vite-plugin-svelte'
|
|||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
base: "/biking/",
|
||||||
plugins: [svelte()],
|
plugins: [svelte()],
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user