-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ckl1
committed
Feb 19, 2024
1 parent
fa38c01
commit 61872ee
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
let __unconfig_data; | ||
let __unconfig_stub = function (data = {}) { __unconfig_data = data }; | ||
__unconfig_stub.default = (data = {}) => { __unconfig_data = data }; | ||
import { UserConfig } from 'vite'; | ||
import WindiCSS from 'vite-plugin-windicss'; | ||
import Icons, { ViteIconsResolver } from 'vite-plugin-icons'; | ||
import Components from 'vite-plugin-components'; | ||
|
||
const config: UserConfig = { | ||
optimizeDeps: { | ||
exclude: ['vue-demi', '@vueuse/shared', '@vueuse/core'], | ||
}, | ||
plugins: [ | ||
Components({ | ||
dirs: ['.vitepress/theme/components'], | ||
customLoaderMatcher: (id) => id.endsWith('.md'), | ||
customComponentResolvers: [ | ||
ViteIconsResolver({ | ||
componentPrefix: '', | ||
}), | ||
], | ||
}), | ||
Icons(), | ||
WindiCSS({ | ||
preflight: false, | ||
}), | ||
], | ||
}; | ||
|
||
const __unconfig_default = config; | ||
|
||
if (typeof __unconfig_default === "function") __unconfig_default(...[{"command":"serve","mode":"development"}]);export default __unconfig_data; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters