Posts

Showing posts from November, 2018

How to convert SASS to CSS using nodeJs

Image
I picked node-sass implementer for libsass because it is based on node.js. Installing node-sass (Prerequisite) If you don't have npm, install  Node.js  first. $ npm install -g node-sass  installs node-sass globally  -g . This will hopefully install all you need, if not read libsass at the bottom. How to use node-sass from Command line and npm scripts General format: $ node - sass [ options ] < input . scss > [ output . css ] $ cat < input . scss > | node - sass > output . css Examples: $ node-sass my-styles.scss my-styles.css  compiles a single file manually. $ node-sass my-sass-folder/ -o my-css-folder/  compiles all the files in a folder manually. $ node-sass -w sass/ -o css/  compiles all the files in a folder automatically whenever the source file(s) are modified.  -w  adds a watch for changes to the file(s). More usefull options like 'compression'  @ here . Command line is good for ...

Popular posts from this blog

How to download a file using command prompt (cmd) Windows?

The future of Artificial Intelligence: 6 ways it will impact everyday life

How to Include ThreeJs in Your Projects