Skip to content

Commit

Permalink
安装unocss
Browse files Browse the repository at this point in the history
  • Loading branch information
kanyxmo committed Oct 24, 2024
1 parent 579d840 commit 8a7cb25
Show file tree
Hide file tree
Showing 4 changed files with 904 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ import zhGetSidebar from "./src/zh/sidebars";
import enGetSidebar from "./src/en/sidebars";
import { AnnouncementPlugin } from 'vitepress-plugin-announcement'
import { plantuml } from "@mdit/plugin-plantuml";

import UnoCSS from 'unocss/vite'

// https://vitepress.dev/reference/site-config
export default defineConfigWithTheme ({
vite:{
plugins:[
UnoCSS(),
AnnouncementPlugin({
title:"MineAdmin 交流群",
body:[
Expand Down
4 changes: 3 additions & 1 deletion .vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ import '@mineadmin/pro-table/dist/style.css'
import '@imengyu/vue3-context-menu/lib/vue3-context-menu.css'

import './styles/var.css'
import {baiduPlugin} from "./plugin/baidu";
import { baiduPlugin } from "./plugin/baidu";

import "virtual:uno.css";

export default {
enhanceApp(ctx: EnhanceAppContext) {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"devDependencies": {
"@mdit/plugin-plantuml": "^0.13.1",
"simple-git": "^3.27.0",
"unocss": "^0.63.6",
"vitepress": "^1.4.0",
"vitepress-plugin-comment-with-giscus": "^1.1.15",
"vitepress-plugin-group-icons": "^1.2.4"
Expand Down
Loading

0 comments on commit 8a7cb25

Please sign in to comment.