[chore] Update npm packages and Svelte alias config
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { resolve } from 'path'
|
||||
import preprocess from 'svelte-preprocess'
|
||||
|
||||
const adapter = process.env.ADAPTER || '@sveltejs/adapter-node'
|
||||
@@ -10,17 +9,12 @@ const config = {
|
||||
preprocess: preprocess(),
|
||||
|
||||
kit: {
|
||||
// Vite configuration: https://vitejs.dev/config/
|
||||
vite: {
|
||||
resolve: {
|
||||
alias: {
|
||||
$components: resolve('src/components'),
|
||||
$animations: resolve('src/animations'),
|
||||
$modules: resolve('src/modules'),
|
||||
$utils: resolve('src/utils'),
|
||||
}
|
||||
},
|
||||
},
|
||||
alias: {
|
||||
$components: 'src/components',
|
||||
$animations: 'src/animations',
|
||||
$modules: 'src/modules',
|
||||
$utils: 'src/utils',
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user