The project integrates NPM through NPM
- If package.json is not available locally, run the following command and press Enter to initialize the environment and generate package.json. If the package.json file exists, it will be overwritten and generated again
npm init
Copy the code
- In the root directory of the project, where the project.config.json file is located, run the following command
npm i @vant/weapp -S --production
Copy the code
- Build through applets development tools
Added: Specify the Vant version
NPM i@vant /[email protected] -s --productionCopy the code