How to compile lesscss using node.js

Hi,
I finished the code of my site using the client side lesscssand now I want to compile less, so I downloaded node.js. My site runs on localhost, and I want to know first:

  • where i need to install node.js
  • what should I do next (command lines, command lines, etc.).

If someone can help me because I am new to this area.

Thank.

+4
source share
1 answer

You can install the LESS compiler directly from npm.

  • node.js. .
    Windows, .msi; OSX, .pkg. 64- ( 32- ). Linux , . .
  • node.js npm, node.js . / npm -v, , .
  • LESS, :

    npm install -g less
    

( : OSX Linux sudo: sudo npm install -g less).

LESS lessc. . .

PS: lessc . Google "less gui windows/mac/linux", , Mac.

+10

Source: https://habr.com/ru/post/1535847/


All Articles