https://github.com/zhao-cpu/wechat-vant-template
weChat-vant-template
https://github.com/zhao-cpu/wechat-vant-template
template vant wechat
Last synced: over 1 year ago
JSON representation
weChat-vant-template
- Host: GitHub
- URL: https://github.com/zhao-cpu/wechat-vant-template
- Owner: zhao-cpu
- Created: 2023-05-18T07:19:49.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-12T06:39:03.000Z (over 2 years ago)
- Last Synced: 2025-01-05T09:43:39.143Z (over 1 year ago)
- Topics: template, vant, wechat
- Language: JavaScript
- Homepage:
- Size: 31.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# vant + wechat + template
## vant
### 下载
```js
npm init -y
npm i @vant/weapp -S --production
```
### 修改 app.json
将 app.json 中的 "style": "v2" 去除
### 修改 project.config.json
```js
{
...
"setting": {
...
"packNpmManually": true,
"packNpmRelationList": [
{
"packageJsonPath": "./package.json",
"miniprogramNpmDistDir": "./"
}
]
}
}
```
### 构建 npm 包
打开微信开发者工具,点击 工具 -> 构建 npm,并勾选 使用 npm 模块 选项,构建完成后,即可引入组件。
## 使用
- npm install
- 开发者工具菜单:工具 -> 构建 npm