我正在尝试将 grunt 与 jshint 和 jshint-log-reporter 一起使用,但无法让它写入输出文件。
我已经安装了 jshint 和 jshint-log-reporter。
我的 Gruntfile.js 看起来像这样:
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
options: {
jshintrc : '.jshintrc',
reporter: require('jshint-log-reporter'),
reporterOutput: 'WebContent/js/report.log'
},
files: {
src: ["WebContent/js/**/*.js"]
}
}......
当我执行 grunt 时,jshint 任务似乎工作,但没有创建或编辑文件。
我究竟做错了什么?谢谢