docs: 更新文档

This commit is contained in:
wanchun 2022-05-16 19:33:44 +08:00
parent d30adf3b53
commit 395012fca5
3 changed files with 16 additions and 17 deletions

View File

@ -2,8 +2,8 @@
`Fes.js@2.1.x` 版本支持 Vite 和 Webpack 两种构建方式,不再内置构建方式,需要开发者自行选择:
- 选用 Vite 构建,安装 `npm i @fesjs/build-vite` 依赖即可。
- 选用 Webpack 构建,安装 `npm i @fesjs/build-webpack` 依赖即可。
- 选用 Vite 构建,安装 `npm i @fesjs/builder-vite` 依赖即可。
- 选用 Webpack 构建,安装 `npm i @fesjs/builder-webpack` 依赖即可。
## 使用差异

View File

@ -54,20 +54,19 @@ fes-template
"@webank/eslint-config-webank": "0.3.1"
},
"dependencies": {
"@fesjs/fes": "^2.0.0",
"@fesjs/builder-webpack": "^2.0.0",
"@fesjs/plugin-access": "^2.0.0",
"@fesjs/plugin-layout": "^3.0.0",
"@fesjs/plugin-locale": "^3.0.0",
"@fesjs/plugin-model": "^2.0.0",
"@fesjs/plugin-enums": "^2.0.0",
"@fesjs/plugin-jest": "^2.0.0",
"@fesjs/plugin-vuex": "^2.0.0",
"@fesjs/plugin-request": "^2.0.0",
"@fesjs/plugin-qiankun": "^2.0.0",
"@fesjs/plugin-sass": "^2.0.0",
"@fesjs/plugin-monaco-editor": "^2.0.0",
"@fesjs/plugin-windicss": "^2.0.0",
"@fesjs/fes": "^3.0.0-beta.0",
"@fesjs/builder-webpack": "^3.0.0-beta.0",
"@fesjs/plugin-access": "^3.0.0-beta.0",
"@fesjs/plugin-layout": "^5.0.0-beta.0",
"@fesjs/plugin-model": "^3.0.0-beta.0",
"@fesjs/plugin-enums": "^3.0.0-beta.0",
"@fesjs/plugin-jest": "^3.0.0-beta.0",
"@fesjs/plugin-vuex": "^3.0.0-beta.0",
"@fesjs/plugin-request": "^3.0.0-beta.0",
"@fesjs/plugin-qiankun": "^3.0.0-beta.0",
"@fesjs/plugin-sass": "^3.0.0-beta.0",
"@fesjs/plugin-monaco-editor": "^3.0.0-beta.0",
"@fesjs/plugin-windicss": "^3.0.0-beta.0",
"@fesjs/fes-design": "^0.5.0",
"vue": "^3.0.5",
"vuex": "^4.0.0"

View File

@ -7,7 +7,7 @@
## 不变更构建方式
1. 添加 Webpack 构建依赖包: `npm i @fesjs/build-webpack -D`。
1. 添加 Webpack 构建依赖包: `npm i @fesjs/builder-webpack -D`。
2. 如果有,将 `public/index.html` 文件挪到项目根目录,移除 [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin) 相关配置,具体模版变量使用请查看[HTML 模版](../guide/template.html)。
## 换成 Vite