Gruntjs 未定义useminPrepare选项属性

Gruntjs 未定义useminPrepare选项属性,gruntjs,yeoman,jshint,grunt-usemin,Gruntjs,Yeoman,Jshint,Grunt Usemin,当我从命令行运行grunt时,我收到一个jshint错误 Running "useminPrepare:html" (useminPrepare) task Going through public/index.html to update the config Looking for build script HTML comment blocks Warning: An error occurred while processing a template (C

当我从命令行运行
grunt
时,我收到一个jshint错误

    Running "useminPrepare:html" (useminPrepare) task
    Going through public/index.html to update the config
    Looking for build script HTML comment blocks
    Warning: An error occurred while processing a template (Cannot read property 'options' of undefined). Use --force to continue.

    Aborted due to warnings.
在我的gruntfile中,我有:

useminPrepare: {
  html: '<%= yeoman.app %>/index.html',
  options: {
    dest: '<%= yeoman.dist %>'
  }
},

为什么我会得到未定义错误的无法读取属性“options”?

我也遇到了同样的问题。我在GrunFile中配置了另一个错误的任务。 我重用了另一个没有定义对象的项目中的任务

我在另一个项目中:

此项目中未定义


我通过使用
--debug--verbose--force运行grunt来找到它,以查看还有什么问题。中断的任务可能有错误。

我也有同样的问题。我在GrunFile中配置了另一个错误的任务。 我重用了另一个没有定义对象的项目中的任务

我在另一个项目中:

此项目中未定义


我通过使用
--debug--verbose--force运行grunt来找到它,以查看还有什么问题。中断的任务可能有错误。

谢谢。对我来说也是一样:)谢谢。对我来说也是一样:)
yeoman: {
  // configurable paths
  app: require('./bower.json').appPath || 'public',
  dist: 'dist'
},