This commit is contained in:
pplokijuhyg 2019-11-25 15:22:31 +08:00
parent c8a57c86f1
commit 9f8fa6268e

View File

@ -1,12 +1,12 @@
# vue-cli引用vant使用rem自适应 #
### 介绍 ###
## 介绍 ##
使用的node包管理器为yarn
vue-cli版本4
### 安装vant ###
## 安装vant ##
yarn add vant
### 配置
## 配置 ##
由于rem是由首页脚本定义 所以不需要安装自动计算rem的插件
安装babel-plugin-import实现按需加载
### 安装babel-plugin-import实现按需加载
配置babel
.babelrc
```
@ -20,8 +20,7 @@ yarn add vant
]
}
```
安装postcss-pxtorem
这个是将px转为rem
### 安装postcss-pxtorem 这个是将px转为rem
在package.json配置
"postcss": {
"plugins": {