import aliases

This commit is contained in:
Ben Allfree 2022-09-19 11:16:17 -07:00
parent 9a6eacadc0
commit 9d69582dac
2 changed files with 18 additions and 6 deletions

View File

@ -8,7 +8,14 @@ const config = {
preprocess: preprocess(), preprocess: preprocess(),
kit: { kit: {
adapter: adapter({ out: 'dist-server' }) }, adapter: adapter({ out: 'dist-server' }),
alias: {
$components: './src/components',
$util: './src/util',
$src: './src'
}
},
target: '#svelte'
} }
export default config export default config

View File

@ -9,7 +9,12 @@
"resolveJsonModule": true, "resolveJsonModule": true,
"skipLibCheck": true, "skipLibCheck": true,
"sourceMap": true, "sourceMap": true,
"strict": true "strict": true,
"paths": {
"$util/*": ["src/util/*"],
"$components/*": ["src/components/*"],
"$src/*": ["src/*"]
}
} }
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
// //