首先下載vue :https://github.com/adventurewithme/vue_demo
這個是最初始的空白vue。
安裝vant:
# 通過 npm 安裝 : npm i vant -S
# 通過 yarn 安裝 : yarn add vant
Rem 適配
- postcss-pxtorem 是一款 postcss 插件,用於將單位轉化爲 rem:npm install postcss-pxtorem --save-dev
- lib-flexible 用於設置 rem 基準值: npm install lib-flexible --save