node -sass code example
Example 1: node sass
npm install node-sass
Example 2: node
JavaScript run time enviroment. Usully JS is ran by the browser.
Node helps run javascript code outside the browser while also providing tools to
make coding in js more streamlined.
Example 3: node-sass
var sass = require('sass');
sass.render({
file: scss_filename
}, function(err, result) {
/* ... */
});
// OR
var result = sass.renderSync({
file: scss_filename
});