[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' }));
});
这个怎么解决,还请高手指点:
相关分类