Gulp plugin that compiles Underscore template (`.html`) files into a single CommonJS module. Version 1.0.0 (latest, 2014) – no updates since. Differentiates by providing a Gulp-stream-friendly API for precompiling templates, enabling minification before compilation, and outputting a require-able module. Alternatives exist in more maintained gulp- template plugins (e.g., gulp-template-compile).
npm install gulp-underscore-templateNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compiles all HTML templates into a single CommonJS module using gulp pipeline.
Consider using actively maintained alternatives like gulp-template-compile or gulp-angular-templatecache for newer projects.
Use bracket notation: templates['file-name'] instead of templates.fileName.
In TypeScript, set esModuleInterop: true; otherwise use `const templates = require(...)`.
Add .pipe(htmlmin({...})) before .pipe(template()).Install underscore: npm install underscore --save (must be a runtime dependency in consuming project).
Run: npm install gulp-underscore-template --save-dev (requires gulp as well).
Use require() or transpile the output file with Babel/TypeScript.