🛠️ Update alias.

This commit is contained in:
pheralb 2023-03-19 14:53:31 +00:00
parent 9afab3cf44
commit 161a5a5ccb
2 changed files with 10 additions and 13 deletions

View File

@ -1,14 +1,14 @@
<script lang="ts">
import type { iSVG } from '../types/svg';
import type { iSVG } from '@/types/svg';
// Get all svgs:
import svgData from '../data/svgs.json';
const allSvgs = JSON.parse(JSON.stringify(svgData));
import { svgs } from '@/data/svgs';
const allSvgs = JSON.parse(JSON.stringify(svgs));
// Components:
import Search from '../components/search.svelte';
import Container from '../components/container.svelte';
import SvgCard from '../components/svgCard.svelte';
import Search from '@/components/search.svelte';
import Container from '@/components/container.svelte';
import SvgCard from '@/components/svgCard.svelte';
// Search:
let searchTerm = "";

View File

@ -3,15 +3,12 @@ import { vitePreprocess } from '@sveltejs/kit/vite';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: vitePreprocess(),
kit: {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter()
adapter: adapter(),
alias: {
'@': './src/*',
}
}
};