Skip to content

Commit

Permalink
Feat/vue support mdx (#94)
Browse files Browse the repository at this point in the history
* chore: update vue template mdx

* chore: update vue template mdx
  • Loading branch information
ErKeLost authored May 7, 2024
1 parent 049facd commit c54f0e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/frameworks/vue.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Create a `Vue` project based on `Farm`.
Select `Vue` template in `Select Framework`

:::warning
Currently, `Farm` uses `Vite` plugins for both `vue2` and `vue3` compilation. Also the development of Rust Vue plugin [fervid](https://github.com/phoenix-ru/fervid) is also underway.
Currently, `Farm` uses `Vite` plugins for both `vue2` and `vue3` and `vue2.7` compilation. Also the development of Rust Vue plugin [fervid](https://github.com/phoenix-ru/fervid) is also underway.
:::

```javascript title="farm.config.ts"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ import TabItem from "@theme/TabItem";
`Select Framework` 中选择 `Vue` 模版

:::warning Vue
目前 `Farm` 只支持 `Vue3`,
对于 `Vue` 插件 `Farm` 推荐使用 `Vite` 插件, 目前也正在进行原生插件 [fervid](https://github.com/phoenix-ru/fervid)的开发。
目前 `Farm` 支持 `vue3`, `vue2`, `vue2.7`
对于 `Vue` 插件 `Farm` 推荐使用 `Vite` 插件, 支持的三种 vue 版本需要安装对应的 `vite` 插件, 目前也正在进行原生插件 [fervid](https://github.com/phoenix-ru/fervid)的开发。
:::

```javascript title="farm.config.ts"
import { defineConfig } from '@farmfe/core';
import Vue from '@vite/plugin-vue'

export default defineConfig({
plugins: [Vue()],
plugins: [Vue()], // vue3 plugin
});
```

Expand Down

0 comments on commit c54f0e5

Please sign in to comment.