Table of Contents
Sveltekit custom pathing
How to set up custom pathing in sveltekit
Set up custom pathing
If you want to use $ts/file.svelte instead of ../../ts/file.svelte
const config = {
kit: {
alias: {
"$ts": "./src/ts"
}
}
};
Usage:
import Button from '$ts/Button.svelte';
Related snippets
Add Darkmode to sveltekit
How to add darkmode to a sveltekit project
Create images from HTML
How to convert html to an image on the server as a sveltekit API endpoint
Discord oAuth with Sveltekit
How to log in to a website with discord
How to use MSW with SvelteKit
Mock API requests in development with Mock Service Worker