Hi,
I am trying to create a gruntfile, but I don’t think it is correct.
Can anyone see anything wrong with it?
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
/**
* Sass
*/
sass: {
dev: {
options: {
style: 'expanded',
sourcemap: 'none',
},
files: {
'style.css': 'scss/style.scss'
}
}
},
/**
* Watch
*/
watch: {
css: {
files: '**/*.scss',
tasks: ['sass']
}
},
});
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default',['watch']);
}
Thanks