A: Less2css plug-in's current main features include:
1: Automatically generate CSS files with the same name when the less file is saved;
2: When the less file is saved, the compiler error message is prompted;
3: Bulk compile all the less files in the project directory as CSS files.
Less2css will also add @imports feature support in the future, and can automatically compile other files that reference this less file at the same time.
Two: The method of installing LESS2CSS is as follows:
1: Press to Ctrl+Shift+P
bring up the command panel;
2: Input call out install
Install Package
option and enter;
3: Enter less2css
, select and install.
Note At this time sublime the bottom left corner of the information installation tips, success will be prompted.
Three: Less2css plugin needs LESSC (Windows system)
: Https://github.com/duncansmart/less.js-windows
After you download the package, and then unzip it, add the file path (for example: D:\Program files (x86) \sublime\data\packages\less) to the system environment path variable.
Then in cmd, the input lessc, without error, indicates that the environment variable was set successfully.
Four: Verify that the LESS2CSS is installed successfully
Then restart the sublime, and then sublime Open or create a new less file, press Ctrl+s Save, it should be in the less file in the same directory to generate a CSS file with the same name.
[K] Installing the Sublime2 less2css plugin