mirror of
https://github.com/pockethost/pockethost.git
synced 2025-05-19 21:36:40 +00:00
import aliases
This commit is contained in:
parent
9a6eacadc0
commit
9d69582dac
@ -3,12 +3,19 @@ import preprocess from 'svelte-preprocess'
|
||||
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
const config = {
|
||||
// Consult https://github.com/sveltejs/svelte-preprocess
|
||||
// for more information about preprocessors
|
||||
preprocess: preprocess(),
|
||||
// Consult https://github.com/sveltejs/svelte-preprocess
|
||||
// for more information about preprocessors
|
||||
preprocess: preprocess(),
|
||||
|
||||
kit: {
|
||||
adapter: adapter({ out: 'dist-server' }) },
|
||||
kit: {
|
||||
adapter: adapter({ out: 'dist-server' }),
|
||||
alias: {
|
||||
$components: './src/components',
|
||||
$util: './src/util',
|
||||
$src: './src'
|
||||
}
|
||||
},
|
||||
target: '#svelte'
|
||||
}
|
||||
|
||||
export default config
|
||||
|
@ -9,7 +9,12 @@
|
||||
"resolveJsonModule": true,
|
||||
"skipLibCheck": 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
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user