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} */
|
/** @type {import('@sveltejs/kit').Config} */
|
||||||
const config = {
|
const config = {
|
||||||
// Consult https://github.com/sveltejs/svelte-preprocess
|
// Consult https://github.com/sveltejs/svelte-preprocess
|
||||||
// for more information about preprocessors
|
// for more information about preprocessors
|
||||||
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
|
||||||
|
@ -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
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user