feat: config dir alias

This commit is contained in:
Anthony Fu committed 2020-08-22 00:12:07 +08:00
1 parent 54f8d25f24
commit 86b3ed348f
7 files changed
+45 -20

No files matched your search

+4
View File
@@ -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(),