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.
我用咕噜-CLI V0。 1.6和grunt v0.4.0,安装了grunt-contrib-watch。
等一下,你不得不安装整个grunt-contrib库吗?这是很多依赖关系。这是最好的解决方案? – 2013-03-21 23:56:32
这不是最好的解决办法。当然,我不使用所有这些功能。 – Serge 2013-04-01 07:41:02