node -sass node 15 code example
Example: node-sass
var sass = require('sass');
sass.render({
file: scss_filename
}, function(err, result) {
/* ... */
});
// OR
var result = sass.renderSync({
file: scss_filename
});
var sass = require('sass');
sass.render({
file: scss_filename
}, function(err, result) {
/* ... */
});
// OR
var result = sass.renderSync({
file: scss_filename
});