# vuepress-starter
**Repository Path**: edgexie/vuepress-starter
## Basic Information
- **Project Name**: vuepress-starter
- **Description**: vuepress 搭建的技术博客,把一些心得在这里写写。笔记太分散了,有道、语雀都有,我在想什么时候去做整理。
- 如果做了,都应该留下点什么。
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2022-07-02
- **Last Updated**: 2022-07-04
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
---
sidebar: false
---
# hello mx
还没想好写些什么...
## 搭建这个blog遇到的问题
### vuepress 不会热更新的操作
`vuepress` 在编译时依赖的内容,不会热更新,如修改,需重启项目。
- 修改 `.vuepress/config.js`
- 添加 `md` 文件,不可以立刻访问到
- 修改 `md` 文件,`sidebar` 内容不会立即更新
### vuepress 中使用 element-ui
- 在 `docs/.vuepress` 中新建 `enhanceApp.js`
```js
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
export default ({ Vue }) => {
Vue.use(ElementUI, { size: 'mini' });
};
```
- 遇到`Can't resolve 'core-js/library/fn/array/from`
需要安装 `"core-js": "2.x"`,注意大版本号必须是`2`。 [参考 issue](https://github.com/vuejs/vuepress/issues/2760#issuecomment-1172907090)
### 在`md`文件中使用 `vue`
::: warning
**script标签需写在`template`前**,这问题找了我好半天。:sweat_smile:
:::
```vue
## [TO DO]fieldsConfig 说明
{{msg}}
```
### 部署到gitee