1 Star 0 Fork 0

edgexie / vuepress-starter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
sidebar
false

hello mx

还没想好写些什么...

搭建这个blog遇到的问题

vuepress 不会热更新的操作

vuepress 在编译时依赖的内容,不会热更新,如修改,需重启项目。

  • 修改 .vuepress/config.js
  • 添加 md 文件,不可以立刻访问到
  • 修改 md 文件,sidebar 内容不会立即更新

vuepress 中使用 element-ui

  • docs/.vuepress 中新建 enhanceApp.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

md文件中使用 vue

::: warning script标签需写在template,这问题找了我好半天。:sweat_smile: :::

## [TO DO]fieldsConfig 说明
<script>
export default {
  data () {
    return {
      msg: 'Hello VuePress!'
    }
  }
}
</script>
<template>
    <div>{{msg}}</div>
</template>

部署到gitee

空文件

简介

vuepress 搭建的技术博客,把一些心得在这里写写。笔记太分散了,有道、语雀都有,我在想什么时候去做整理。 - 如果做了,都应该留下点什么。 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/edgexie/vuepress-starter.git
git@gitee.com:edgexie/vuepress-starter.git
edgexie
vuepress-starter
vuepress-starter
master

搜索帮助