从命令行运行时出现 jshint 错误grunt
。
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 %>'
}
},
yeoman.dist 在 grunt.initConfig 中定义:
yeoman: {
// configurable paths
app: require('./bower.json').appPath || 'public',
dist: 'dist'
},
为什么我收到无法读取未定义的属性“选项”错误?