// for global use
npm install -g sass
// package.json
"scripts": {
"compile:sass": "sass ./style.scss ./style.css -w"
}
npm run complie:sass
npm i node-sass
var sass = require('node-sass');
sass.render({
file: scss_filename,
[, options..]
}, function(err, result) { /*...*/ });
// OR
var result = sass.renderSync({
data: scss_content
[, options..]
});