feat: config dir alias
This commit is contained in:
1 parent
54f8d25f24
commit
86b3ed348f
7 files changed
+45
-20
No files matched your search
@@ -1,9 +1,13 @@
|
||||
import path from 'path'
|
||||
import { UserConfig } from 'vite'
|
||||
import Voie from 'vite-plugin-voie'
|
||||
import PurgeIcons from 'vite-plugin-purge-icons'
|
||||
import ViteComponents from 'vite-plugin-components'
|
||||
|
||||
const config: UserConfig = {
|
||||
alias: {
|
||||
'/~/': path.resolve(__dirname, 'src'),
|
||||
},
|
||||
plugins: [
|
||||
Voie(),
|
||||
ViteComponents(),
|
||||
|
||||
Reference in new issue
Block a user