File tree 7 files changed +10
-91
lines changed
.vitepress/configs/navbar 7 files changed +10
-91
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export const zh = [
22
22
} ,
23
23
{
24
24
text : 'CLI' ,
25
- link : '/reference/cli/' ,
25
+ link : '/reference/cli/index.md ' ,
26
26
} ,
27
27
{
28
28
text : `v${ version } ` ,
Original file line number Diff line number Diff line change 11
11
12
12
### 配置
13
13
14
- Webpack 和 Vite 构建在配置方面有一些差异,具体可以查看[ 配置] ( ../reference/config ) 。
14
+ Webpack 和 Vite 构建在配置方面有一些差异,具体可以查看[ 配置] ( ../reference/config/index.md ) 。
15
15
16
16
### 静态文件处理
17
17
Original file line number Diff line number Diff line change 2
2
3
3
Fes.js 约定 ` .fes.js ` 文件为项目编译需要编译时配置文件,可以引入 ` node ` 端依赖项,不要引入浏览器端依赖项。
4
4
5
- 一份常见的配置示例如下(更多配置项请查阅[ 配置] ( ../reference/config ) ):
5
+ 一份常见的配置示例如下(更多配置项请查阅[ 配置] ( ../reference/config/index.md ) ):
6
6
7
7
``` js
8
8
import { defineBuildConfig } from ' @fesjs/fes' ;
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ Starting the development server http://localhost:8000 ...
126
126
127
127
:::
128
128
129
- Fes.js 会在 [ http://localhost:8000 ] ( http://localhost:8000 ) 启动一个热重载的开发服务器。当你修改你的 .vue 文件时,浏览器中的内容也会自动更新。
129
+ Fes.js 会在 ` http://localhost:8000 ` 启动一个热重载的开发服务器。当你修改你的 .vue 文件时,浏览器中的内容也会自动更新。
130
130
131
131
<img :src =" withBase('home.png') " alt =" home " >
132
132
Original file line number Diff line number Diff line change 2
2
3
3
## 版本 3.0.x 的 break
4
4
5
- 1 . 编译时的 [ base] ( ../reference/config/#base ) 配置,移到了 [ router.base] ( ../reference/config/#router ) 下。
5
+ 1 . 编译时的 [ base] ( ../reference/config/index.md/ #base ) 配置,移到了 [ router.base] ( ../reference/config/index.md /#router ) 下。
6
6
2 . [ webpack-dev-server] ( https://github.com/webpack/webpack-dev-server ) 从 ` v3.x ` 升级到了 ` v4.x ` ,如果遇到配置不兼容,可以查看[ webpack-dev-server 3.x 升级 4.x] ( https://github.com/webpack/webpack-dev-server/blob/master/migration-v4.md ) 。
7
7
8
8
## 继续使用 Webpack
13
13
## 换成 Vite
14
14
15
15
1 . 安装依赖包 ` npm i @fesjs/builder-vite ` 。
16
- 2 . 将 Webpack 相关的配置换成 Vite,具体可查看[ 配置] ( ../reference/config ) 。
16
+ 2 . 将 Webpack 相关的配置换成 Vite,具体可查看[ 配置] ( ../reference/config/index.md ) 。
17
17
3 . 将 html 模版文件从 ` public/index.html ` 挪到项目根目录,如果有相应的 [ html-webpack-plugin] ( https://github.com/jantimon/html-webpack-plugin ) 配置,需要改成 [ vite-plugin-html] ( https://github.com/vbenjs/vite-plugin-html ) 的写法。
18
18
4 . 将 ` require ` 等 Vite 不支持的代码,改写成 Vite 支持的方式。
19
19
20
20
## 插件
21
21
22
22
插件都需要升级到 ` 3.0.x ` 版本,新版添加了兼容` builder ` 的逻辑,但是提供的接口和配置没有变化,只需要升级版本即可使用。
23
23
24
- - [ @fesjs/plugin-layout ] ( ../reference/plugins/layout ) 需要升级到` 5.0.x ` 版本。
25
- - [ @fesjs/plugin-locale ] ( ../reference/plugins/locale ) 需要升级到` 4.0.x ` 版本。
26
- - [ @fesjs/plugin-qiankun ] ( ../reference/plugins/qiankun ) 由于` qiankun ` 技术限制,子应用目前还只能使用 Webpack 构建。
24
+ - [ @fesjs/plugin-layout ] ( ../reference/plugin/ plugins/layout.md ) 需要升级到` 5.0.x ` 版本。
25
+ - [ @fesjs/plugin-locale ] ( ../reference/plugin/ plugins/locale.md ) 需要升级到` 4.0.x ` 版本。
26
+ - [ @fesjs/plugin-qiankun ] ( ../reference/plugin/ plugins/qiankun.md ) 由于` qiankun ` 技术限制,子应用目前还只能使用 Webpack 构建。
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ access.getAccess();
254
254
255
255
### useAccess
256
256
257
- - ** 类型** :[ composition] ( < ( https://v3.cn. vuejs.org/guide/composition-api-introduction .html) > ) 函数
257
+ - ** 类型** :[ composition] ( https://vuejs.org/guide/extras/ composition-api-faq .html#what-is-composition-api ) 函数
258
258
- ** 详情** :判断某个资源是否可见。
259
259
- ** 参数** :
260
260
- accessId,资源 Id
You can’t perform that action at this time.
0 commit comments