Home  >  Article  >  Development Tools  >  How to automatically compile less into css in Sublime Text3

How to automatically compile less into css in Sublime Text3

藏色散人
藏色散人forward
2019-10-17 16:10:303097browse

The following column sublime tutorial will introduce to you the method of automatically compiling less into css in Sublime Text3. I hope it will be helpful to friends in need!

How to automatically compile less into css in Sublime Text3

Steps to use sublime text’s less2css plug-in:

1. Install node.js, download this from the official website

2. Install less, method: command line input:

npm install -g less

3. Sublime install less2css, method:

ctrl+shift+p>install Package>less2css

4. Configure less2css

Preferences → Package Settings → Less2Css → Settings-Default

5. Execute

After writing the less file and pressing ctrl s, a css file with the same name will be generated in the current directory.

The above is the detailed content of How to automatically compile less into css in Sublime Text3. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete