1
0
mirror of https://github.com/sendevia/website.git synced 2026-03-05 23:32:45 +08:00

feat: vite build optimizations

This commit is contained in:
2025-12-17 22:22:08 +08:00
parent a7f17bf5e2
commit 1c7e664a03
2 changed files with 13 additions and 11 deletions

View File

@@ -1,5 +1,7 @@
import { defineConfig } from "vitepress";
import packageJson from "../package.json";
// markdown-it plugins
// https://mdit-plugins.github.io/zh/align.html
import { align } from "@mdit/plugin-align";
// https://github.com/valeriangalliat/markdown-it-anchor
@@ -82,13 +84,6 @@ export default defineConfig({
rel: "stylesheet",
},
],
[
"link",
{
href: "https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap",
rel: "stylesheet",
},
],
],
metaChunk: true,
lastUpdated: true,
@@ -106,4 +101,10 @@ export default defineConfig({
},
],
} as any,
vite: {
build: {
minify: true,
},
plugins: [],
},
});

View File

@@ -6,6 +6,11 @@
"docs:build-cf": "git fetch --unshallow && vitepress build",
"docs:preview": "vitepress preview"
},
"dependencies": {
"@material/material-color-utilities": "^0.3.0",
"@vueuse/core": "^14.1.0",
"pinia": "^3.0.4"
},
"devDependencies": {
"@mdit/plugin-align": "^0.22.2",
"@mdit/plugin-footnote": "^0.22.3",
@@ -14,9 +19,5 @@
"sass-embedded": "^1.93.0",
"vitepress": "^2.0.0-alpha.15",
"vue": "^3.5.0"
},
"dependencies": {
"@material/material-color-utilities": "^0.3.0",
"pinia": "^3.0.4"
}
}