This is an automated email from the ASF dual-hosted git repository.

fmariani pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-website.git


The following commit(s) were added to refs/heads/main by this push:
     new 33cd127c Lazy load node-html-parser to avoid ci caching issues
33cd127c is described below

commit 33cd127c4a993ab14f390b45062b6947020ed959
Author: Croway <[email protected]>
AuthorDate: Wed Jan 28 16:56:56 2026 +0100

    Lazy load node-html-parser to avoid ci caching issues
---
 gulpfile.js | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/gulpfile.js b/gulpfile.js
index 5e704165..b3871c99 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -3,7 +3,6 @@ const env = process.env.CAMEL_ENV || 'development';
 const gulp = require('gulp');
 const htmlmin = require('gulp-htmlmin');
 const inject = require('gulp-inject');
-const generateMarkdown = require('./gulp/tasks/generate-markdown');
 
 /**
  * We minify all HTML files using htmlmin, this is to make them smaller in size
@@ -114,8 +113,12 @@ function versionlessRedirects (text) {
   return processed.join('\n')
 }
 
-// Register the generate-markdown task
-gulp.task('generate-markdown', generateMarkdown);
+// Register the generate-markdown task with lazy loading to avoid requiring
+// node-html-parser when running other tasks (like clean or sitemap)
+gulp.task('generate-markdown', (done) => {
+  const generateMarkdown = require('./gulp/tasks/generate-markdown');
+  return generateMarkdown(done);
+});
 
 /*
  * Removes the content from the `public` directory.

Reply via email to