mirror of
https://github.com/pheralb/svgl.git
synced 2024-11-10 14:46:54 +08:00
🛠️ Update alias.
This commit is contained in:
parent
9afab3cf44
commit
161a5a5ccb
@ -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 = "";
|
||||
|
@ -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/*',
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user