Frontmatter
| id | 7823 |
| title | Optimize highlight.js build to skip unnecessary regeneration |
| state | Closed |
| labels | enhancementdeveloper-experienceai |
| assignees | tobiu |
| createdAt | Nov 20, 2025, 3:11 PM |
| updatedAt | Nov 20, 2025, 3:15 PM |
| githubUrl | https://github.com/neomjs/neo/issues/7823 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Nov 20, 2025, 3:15 PM |
The
buildScripts/buildHighlightJs.mjsscript currently performs a full repository clone and build of highlight.js every time it runs. This is inefficient when runningbuildAllmultiple times.The script should be optimized to:
dist/highlightdirectory already contains the expected files.commanderto add a-f, --forceflag to bypass the check and enforce regeneration.This will significantly speed up the build process for subsequent runs.