11/*
22 * @Author : weisheng
33 * @Date : 2023-07-27 10:26:09
4- * @LastEditTime : 2024-10-10 14:08:16
4+ * @LastEditTime : 2024-11-03 13:30:06
55 * @LastEditors : weisheng
66 * @Description :
77 * @FilePath : \wot-design-uni\docs\.vitepress\config.mts
88 * 记得注释
99 */
1010import { defineConfig } from 'vitepress' ;
1111import viteCompression from 'vite-plugin-compression'
12- import AutoImport from 'unplugin-auto-import/vite'
13- import Components from 'unplugin-vue-components/vite'
14- import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
15-
1612
1713export default defineConfig ( {
1814 vite : {
1915 plugins : [
20- AutoImport ( {
21- resolvers : [ ElementPlusResolver ( ) ] ,
22- } ) ,
23- Components ( {
24- resolvers : [ ElementPlusResolver ( ) ] ,
25- } ) ,
2616 viteCompression ( {
2717 verbose : true ,
2818 disable : false ,
@@ -32,19 +22,6 @@ export default defineConfig({
3222 } )
3323 ] ,
3424 ssr : { noExternal : [ 'element-plus' ] }
35- // build: {
36- // terserOptions: {
37- // compress: {
38- // //生产环境时移除console
39- // drop_console: true,
40- // drop_debugger: true
41- // }
42- // },
43- // // 关闭文件计算
44- // reportCompressedSize: false,
45- // // 关闭生成map文件 可以达到缩小打包体积
46- // sourcemap: false // 这个生产环境一定要关闭,不然打包的产物会很大
47- // }
4825 } ,
4926 title : `Wot Design Uni` ,
5027 description : '一个参照wot-design打造的uni-app组件库' ,
@@ -138,9 +115,9 @@ export default defineConfig({
138115 {
139116 text : '周边生态' ,
140117 items : [
118+ { text : '快速上手项目' , link : 'https://github.com/Moonofweisheng/wot-demo' } ,
141119 { text : 'Vue3 uni-app路由库' , link : 'https://moonofweisheng.github.io/uni-mini-router/' } ,
142120 { text : '多平台小程序CI工具' , link : 'https://github.com/Moonofweisheng/uni-mini-ci' } ,
143- { text : '快速上手项目' , link : 'https://github.com/Moonofweisheng/wot-starter-retail' } ,
144121 { text : 'Uni Helper' , link : 'https://uni-helper.js.org/' } ,
145122 ] ,
146123 } ,
@@ -184,6 +161,10 @@ export default defineConfig({
184161 text : '榜上有名' ,
185162 link : '/reward/donor' ,
186163 } ,
164+ {
165+ text : '🤖 生活小工具' ,
166+ link : '/reward/living' ,
167+ } ,
187168 ] ,
188169
189170 '/component/' : [
0 commit comments