猿问

gulp执行命令是的错误

[13:47:26] Using gulpfile D:\gulpstudyone

[13:47:26] Starting 'scripts'...

ERROR: Can't find config file: .jshintrc


(Can't find config file: .jshintrc)这句找不到.jshintrc,是什么原因呢,下面是我的配置文件:

gulp.task('scripts', function() {

  return gulp.src('src/js/*.js')

    .pipe(jshint('.jshintrc'))

    .pipe(jshint.reporter('default'))

    .pipe(concat('main.js'))

    .pipe(gulp.dest('dist/scripts'))

    .pipe(rename({ suffix: '.min' }))

    .pipe(uglify())

    .pipe(gulp.dest('dist/scripts'))

    .pipe(notify({ message: 'Scripts task complete' }));

});

这个怎么解决,还请高手指点:

慕无忌1623718
浏览 633回答 1
1回答
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答