更新build环境

This commit is contained in:
2025-02-22 20:14:07 +08:00
parent bfc428b237
commit 9aba895f79
3 changed files with 472 additions and 19 deletions
+35 -2
View File
@@ -1,2 +1,35 @@
# thejinchao.github.io
My Blog and Notebook
# My Blog and Notebook
Visit: [https://thejinchao.github.io](https://thejinchao.github.io)
## 开发环境搭建
1. 安装node.js [https://nodejs.org](https://nodejs.org)
2. 安装yarn [https://classic.yarnpkg.com/lang/en/docs/install/#windows-stable](https://classic.yarnpkg.com/lang/en/docs/install/#windows-stable)
```
npm install --global yarn
yarn --version
```
## 安装必须组件
### 安装 vuepress
```
npm install -D vuepress@next
```
### 安装打包工具和主题
```
npm install -D @vuepress/bundler-vite@next @vuepress/theme-default@next
```
### 安装sass-embedded
```
yarn add -D sass-embedded
```
#### Add math support to your VuePress site
```
npm i -D @vuepress/plugin-markdown-math@next
npm i -D mathjax-full
```
### Add additional features to your markdown images
```
npm i -D @vuepress/plugin-markdown-image@next
```