node-sass npm code example
Example 1: sass node sass loder
npm install sass-loader node-sass webpack --save-dev
Example 2: node sass
npm install node-sass
Example 3: install sass
npm install -g sass
Example 4: npm scss
npm i node-sass
Example 5: node-sass run
npm install node-sass
node-sass ./styles.scss -o ./styles.css
Example 6: node-sass
var sass = require('sass');
sass.render({
file: scss_filename
}, function(err, result) {
/* ... */
});
// OR
var result = sass.renderSync({
file: scss_filename
});