gulp-htmlhint を使っているのですが、ファイル名順で最初の16ファイルぐらいしか対象にされません。すべてのファイルを処理対象にするにはどうしたらよいでしょうか。
◆distディレクトリの中身。
- 01.html
- 02.html
- 03.html
- 04.html
- 05.html
- ・
- 中略
- ・
- 16.html
- 17.html
- 18.html
◆
17.htmlや18.htmlにエラーがあっても、gulp-htmlhintでは何も表示されない。
01.htmlを削除すれば、gulp-htmlhintで17.htmlのエラーが表示される。
01.htmlと02.htmlを削除すれば、gulp-htmlhintで17.htmlと18.htmlのエラーが表示される。
エラーメッセージはありません。
「gulp」のバージョンは4.0.2。
「gulp-htmlhint」のバージョンは3.0.0。
「gulp-htmlhint」ではない「htmlhint」だと、問題はありません。
「gulp-htmlhint」ではなく「gulp」の問題でしょうか。
◆gulpfile.js の記述。
var gulp = require('gulp'); var htmlhint = require("gulp-htmlhint"); gulp.task('htmlhint', function() { gulp.src(['dist/**/*.html', '!dist/html.html']) .pipe(htmlhint('htmlhintrc.json')) .pipe(htmlhint.reporter()); }); gulp.task('default',['htmlhint']);
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。