You are here

Installing libsass on Ubuntu

The most minimal way of doing an installation is using sassc, the C binding.

apt install git build-essential
cd /opt
git clone https://github.com/sass/libsass.git
git clone https://github.com/sass/sassc.git libsass/sassc
echo 'SASS_LIBSASS_PATH="/opt/libsass"' >> /etc/environment
source /etc/environment
echo $SASS_LIBSASS_PATH # Make sure it worked…
cd libsass/sassc
make
ln -sn /opt/libsass/sassc/bin/sassc /usr/local/bin/

sassc file.scss file.css # run like this

Installing and Setting up Gulp

apt install npm
ln -sn /usr/bin/nodejs /usr/bin/node #Ubunt names it nodejs
cd /home/plousia/inner/themes/ #cd to a directory containing a package.json which lists dependencies
npm install
npm install -g gulp-cli
gulp # to test
gulp watch # to run
Topic: