【发布时间】:2014-04-22 13:31:03
【问题描述】:
我已将 grunt registerTask 'heroku' 任务添加到 Gruntfile.js 文件中。但是在做 git commit 和 git push heroku master 时,最后我得到了这个错误。请在这里帮助我。
-----> 找到 Gruntfile,运行 grunt heroku:production task 加载“Gruntfile.js”任务...错误 错误:找不到模块“load-grunt-tasks” 警告:找不到任务“heroku:production”。使用 --force 继续。
grunt.registerTask('heroku',[
'clean:dist',
'useminPrepare',
'concurrent:dist',
'compass:dist',
'autoprefixer',
'concat',
'imagemin',
'cssmin',
'uglify',
'modernizr',
'usemin',
'htmlmin'
]);
【问题讨论】: