Skip to content

Instantly share code, notes, and snippets.

@geoom
Last active December 18, 2015 04:59
Show Gist options
  • Save geoom/5729271 to your computer and use it in GitHub Desktop.
Save geoom/5729271 to your computer and use it in GitHub Desktop.
basic commands for using less (tested in debian)
/* -----------------------------------------
Install node.js and npm in Debian
----------------------------------------- */
sudo apt-get install python-software-properties
sudo apt-add-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
/* -----------------------------------------
Using less
----------------------------------------- */
sudo npm install -g less // install less in global way
lessc input.less > output.css // compile input.less file to output.css file
lessc input.less // compile input.less file and show in std out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment