feat: migrate to $ alias
This commit is contained in:
parent
d7a0a24a8f
commit
aa1cae3540
5 changed files with 15 additions and 14 deletions
|
|
@ -3,13 +3,13 @@
|
|||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
import ThemeSwitcher from '../components/ThemeSwitcher.svelte';
|
||||
import ThemeSwitcher from '$components/ThemeSwitcher.svelte';
|
||||
import { page } from '$app/stores';
|
||||
import { mdiCopyright } from '@mdi/js';
|
||||
import Icon from 'mdi-svelte';
|
||||
import '@fontsource/ubuntu-mono/400.css';
|
||||
import Link from '../components/Link.svelte';
|
||||
import MoveUpButton from '../components/MoveUpButton.svelte';
|
||||
import Link from '$components/Link.svelte';
|
||||
import MoveUpButton from '$components/MoveUpButton.svelte';
|
||||
|
||||
const NAV_ITEMS = [
|
||||
{ href: '/', label: 'Home' },
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@
|
|||
|
||||
<script lang="ts">
|
||||
import type { BlogPostMeta } from '../../types';
|
||||
import Link from '../../components/Link.svelte';
|
||||
import ListItem from '../../components/ListItem.svelte';
|
||||
import Link from '$components/Link.svelte';
|
||||
import ListItem from '$components/ListItem.svelte';
|
||||
|
||||
export let posts: BlogPostMeta[];
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -13,9 +13,9 @@
|
|||
import { mdiEmailEditOutline } from '@mdi/js';
|
||||
import { mdiGithub } from '@mdi/js';
|
||||
import Icon from 'mdi-svelte';
|
||||
import Element from '../components/element.svelte';
|
||||
import Link from '../components/Link.svelte';
|
||||
import ListItem from '../components/ListItem.svelte';
|
||||
import Element from '$components/element.svelte';
|
||||
import Link from '$components/Link.svelte';
|
||||
import ListItem from '$components/ListItem.svelte';
|
||||
</script>
|
||||
|
||||
<h1>Contact Information</h1>
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@
|
|||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
import ListItem from '../components/ListItem.svelte';
|
||||
import Link from '../components/Link.svelte';
|
||||
import ListItem from '$components/ListItem.svelte';
|
||||
import Link from '$components/Link.svelte';
|
||||
import type { Skill } from '../types';
|
||||
|
||||
let _SKILLS = [
|
||||
|
|
|
|||
|
|
@ -13,15 +13,16 @@ const config = {
|
|||
// for more information about preprocessors
|
||||
preprocess: [
|
||||
preprocess({ postcss: { plugins: [autoprefixer, cssNormalizer()] } }),
|
||||
mdsvex(mdsvexconfig)
|
||||
mdsvex(mdsvexconfig),
|
||||
],
|
||||
|
||||
kit: {
|
||||
adapter: adapter()
|
||||
adapter: adapter(),
|
||||
alias: { $components: 'src/components' },
|
||||
},
|
||||
prerender: {
|
||||
default: true
|
||||
}
|
||||
default: true,
|
||||
},
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue