Recently in the pit Alipay applet, the current Alipay applet framework is not very mature, and then the project requirements are relatively high, in order to avoid some unpredictable pit, so choose the native Alipay applet development.

Alipay applET is not support less compilation, for used to a variety of variables, a variety of minxin writing method for me is very inconvenient. The WXSS-CLI, a little transformation can support less compilation of Alipay applets.

1. Install wxss-cli globally and put the modified package in global node_modules (download address).

2. Create a new less file in the corresponding page directory. For example, there are four files in the original directory. ACSS.AXML.JS. JSON, and add a less file with the same name in the same directory.

3. Run the compile command into the project directory and specify the directory to compile, such as compile all less files under the pages

wxss ./pages

4. Other commands

WXSS-V View Version WXSS-H View Help