karma-htmlmin-preprocessor

JSON →
library 0.1.0 ·javascript abandoned
verified Jun 4, 2026

Karma preprocessor plugin that minifies HTML files using html-minifier before they are served to the browser. Version 0.1.0 is the only release (2014), no longer maintained. Useful when combined with other preprocessors like karma-ng-html2js-preprocessor to reduce HTML file size in AngularJS directive templates. Note that this plugin only defines the 'htmlMin' preprocessor; actual minification behavior is controlled via the htmlMinPreprocessor configuration object, which passes options to html-minifier. Requires Karma ~0.10 but may work with newer versions.