HTML Build Block Reference Replacement

JSON →
library 0.3.15 ·javascript abandoned
verified May 27, 2026

node-useref is a utility package designed to parse HTML files for special 'build blocks' defined by HTML comments (e.g., `<!-- build:js ... -->`). Its primary function is to replace multiple script or link tags within these blocks with a single consolidated tag, or to remove the block entirely based on the specified type (`js`, `css`, `remove`). It outputs the modified HTML string along with a comprehensive map detailing the original assets that were part of each consolidated block, enabling subsequent build tools (like concatenators or minifiers) to process the actual files. The current stable version is 0.3.15, released in 2016. The package is effectively abandoned, with no active development or maintenance. Its key differentiator is its focused role as a HTML parser and rewritter for asset references, leaving the actual file manipulation to external tools, and its support for IE conditional comments and custom block types.

total hits 14
actors 6 distinct systems
last hit 1d ago AhrefsBot
GPTBot
2
Script
1
ClaudeBot
1
Search engines
1
Humans
4

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France · VN · GR