I
I
Ilya Sidorenko2014-03-15 13:33:40
css
Ilya Sidorenko, 2014-03-15 13:33:40

How to compile a less file in Sublime Text?

Decided to learn LESS CSS. How can I compile a .less file if I'm using Sublime Text?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Petrov, 2014-03-15
@dzhiriki

Set up grunt/gulp or some other project builder. This is good.
In simple terms:
Tools - Build Systems - New.

{
  "cmd": ["sass file.scss > file.css"],
  "shell": true,
  "working_dir": "${project_path}"
}

An example with sass using it, but with LESS, I think the command will be similar.
Well, lead Build to the desired hotkey (at least for saving), when building, you can set up saving the file. There will be a build + save on Ctrl+S.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question