grunt-sass-scss
Version:
Compiles Sass / Scss to Css
34 lines (26 loc) • 631 B
JavaScript
/*
* grunt-sass-scss
*
*
* Copyright (c) 2021 semiromid
* Licensed under the MIT license.
*/
;
const
renderSync = require('./functions/renderSync'),
render = require('./functions/render');
module.exports = function(grunt){
grunt.registerMultiTask('sass', 'SASS/SCSS to CSS', function(){
const
options = this.options({
function: 'renderSync',
sass: {}
});
if(options.function === 'renderSync'){
renderSync(grunt, this.files, options);
}else
if(options.function === 'render'){
render(grunt, this.async(), this.files, options);
}
});
}