HBuilder configured to automatically compile Less

1, the installation less compilation

Less NodeJS is based, so after the installation using npm installation Less NodeJS

npm install -g less

If the above command is slow, then the use of domestic mirroring:

cnpm install -g less

 

2. Go HBuilder precompiled set

 

 

3. Configure precompiled items

 

 

 

 

Trigger command address lessc.cmd file, which in NodeJS installation directory (the installation will be completed after the LESS file)

 

 

4. configuration

After configuration is complete, save .less file will automatically modify the .css file a response.

Guess you like

Origin www.cnblogs.com/xiejn/p/11968581.html