Javascript – Incorrect word count using Cheerio
I am trying to calculate the word count of an HTML page using Cheerio in the following Gulp task: gulp.task("html", () => { try { return gulp.src(folder.src + "html/**/*.html") .pipe(preprocess()) .pipe(htmlmin({ collapseWhitespace: true, removeComments: true, minifyCSS: true, minifyJS: true }))…