BLOG-58 Rewrite frontend with svelte kit #61
2
frontend-v2/src/app.d.ts
vendored
2
frontend-v2/src/app.d.ts
vendored
@ -7,6 +7,8 @@ declare global {
|
||||
// interface PageData {}
|
||||
// interface PageState {}
|
||||
// interface Platform {}
|
||||
|
||||
declare const __VERSION__: string;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,6 +5,9 @@
|
||||
import '@fortawesome/fontawesome-free/css/all.min.css';
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<meta name="app-version" content={App.__VERSION__} />
|
||||
</svelte:head>
|
||||
<div class="min-h-screen">
|
||||
<Navbar />
|
||||
<slot />
|
||||
|
@ -2,6 +2,11 @@ import tailwindcss from '@tailwindcss/vite';
|
||||
import { sveltekit } from '@sveltejs/kit/vite';
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
import { version } from './package.json';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [tailwindcss(), sveltekit()]
|
||||
plugins: [tailwindcss(), sveltekit()],
|
||||
define: {
|
||||
'App.__VERSION__': JSON.stringify(version)
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user