mirror of
https://github.com/pheralb/svgl.git
synced 2025-02-06 06:58:04 +08:00
🛠️ Update alias.
This commit is contained in:
parent
9afab3cf44
commit
161a5a5ccb
@ -1,14 +1,14 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import type { iSVG } from '../types/svg';
|
import type { iSVG } from '@/types/svg';
|
||||||
|
|
||||||
// Get all svgs:
|
// Get all svgs:
|
||||||
import svgData from '../data/svgs.json';
|
import { svgs } from '@/data/svgs';
|
||||||
const allSvgs = JSON.parse(JSON.stringify(svgData));
|
const allSvgs = JSON.parse(JSON.stringify(svgs));
|
||||||
|
|
||||||
// Components:
|
// Components:
|
||||||
import Search from '../components/search.svelte';
|
import Search from '@/components/search.svelte';
|
||||||
import Container from '../components/container.svelte';
|
import Container from '@/components/container.svelte';
|
||||||
import SvgCard from '../components/svgCard.svelte';
|
import SvgCard from '@/components/svgCard.svelte';
|
||||||
|
|
||||||
// Search:
|
// Search:
|
||||||
let searchTerm = "";
|
let searchTerm = "";
|
||||||
|
@ -3,15 +3,12 @@ import { vitePreprocess } from '@sveltejs/kit/vite';
|
|||||||
|
|
||||||
/** @type {import('@sveltejs/kit').Config} */
|
/** @type {import('@sveltejs/kit').Config} */
|
||||||
const config = {
|
const config = {
|
||||||
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
|
|
||||||
// for more information about preprocessors
|
|
||||||
preprocess: vitePreprocess(),
|
preprocess: vitePreprocess(),
|
||||||
|
|
||||||
kit: {
|
kit: {
|
||||||
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
|
adapter: adapter(),
|
||||||
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
|
alias: {
|
||||||
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
|
'@': './src/*',
|
||||||
adapter: adapter()
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user