My current task involves converting .css files to .sass files using the 'grunt-sass-convert' npm module. Here is the configuration in my 'Gruntfile.js':
'use strict';
module.exports = function(grunt){
grunt.loadNpmTasks('grunt-sass-convert');
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
Sass: {
options: {
style: 'expanded',
from: 'css',
to: 'sass'
},
files: {
cwd: 'style',
src: '*.css',
filePrefix: '_',
dest: 'sass/'
}
}
});
grunt.registerTask('default',['Sass']);
};
I followed the documentation of grunt-sass-convert npm module available here to create the Gruntfile.js. However, when I run the grunt command in the command prompt, I encounter the following error:
Warning: Task "Sass" not found. Use --force to continue.
Aborted due to warnings.
I have researched various stackoverflow threads but I'm still unable to resolve the issue. It seems like there is an error in the .js file causing this problem.
Here is the directory structure I am working with: link
Thank you for your assistance..!!