What is wrong with this gruntfile?

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

What do you believe is wrong with it? Have you tested it and got errors? Without understanding what you’re expecting to happen, and the result you’re actually getting, I think we’d be in the realm of guessing to some extent.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.