I just installed less css compiler using npm. Now thelesscfile directory is /usr/local/bin/lessc . i'm not clear what i need to change in lessc file and how to understand that compiler has been correctly installed.
Asked
Active
Viewed 2.8k times
10
Najim Sujon
- 109
3 Answers
5
/usr/local/bin/ should already be in your $PATH so there's nothing to do.
Simply use lessc like you would any other command. Here's a little snippet showing mine is installed like yours, and it parsing some LESS into CSS.
$ sudo npm install -g less
... npm installs less ...
$ which lessc
/usr/local/bin/lessc
$ lessc - <<< 'a{color:white; strong {color:black}}'
a {
color: white;
}
a strong {
color: black;
}
Oli
- 299,380
2
Installation:
sudo apt install node-less
Using:
lessc source_file.less file.css