Gruntfile.js:
grunt.initConfig({ watch: { compass: { files: [ 'app/styles/**/*.{scss,sass}' ],tasks: 'compass reload' },..... grunt.registerTask('dev','watch');
当我跑
grunt dev
我得到错误
Warning: Task "watch" not found. Use --force to continue.
我使用grunt-cli v0.1.6和grunt v0.4.0,安装了grunt-contrib-watch。