[英]gulp-jshint task is taking over 5 minutes to complete
我正在使用gulp,但還很新,我的gulp jshint任務如下:
gulp.task('jshint', ()=>{
return gulp.src([`${root}/**/*.js`])
.pipe(jshint('.jshintrc'))
.pipe(jshint.reporter('jshint-stylish'))
.pipe(jshint.reporter('gulp-jshint-html-reporter', { filename: 'jshint-output.html' }))
.pipe(jshint.reporter('fail'));
});
每次我運行構建時,任務要花費5分鍾。 反正有加速的嗎?
$ root是src,它未通過node_modules運行。
提前致謝!
弄清楚了,有一些不需要的lib文件被拾取,由於它們很大,導致jshint需要更長的時間。 翻轉桌子
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.