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