Article directory
The WeChat applet developer tool integrates the vscode editor and can use many plug-ins in vscode, which provides great convenience for us to develop WeChat applet.
You can use the easysass plug-in to use sass in WeChat development. The installation steps are as follows.
1. Search for the easysass plug-in in vscode and install it
2. Import and install the easysass plug-in in the WeChat development tool
3. Modify the configuration in the spook.easysass-0.0.6/package.json file
Find this file and open it.
Open the package.json inside and modify the content.
Click here to modify it.
4. Restart the developer tools and you will be able to use them.
Restart the project.
In the WeChat development tools: Project -> Reopen this project
and create
a new .scss file. Write the css style normally here. After saving, it will be compiled into a .wxss file.