Middleware for Express that automatically minifies and caches HTML output rendered by the Swig template engine. Version 0.4.4-b is the latest and only release, last updated in 2016. Supports file, memory, or Redis caching with configurable hash algorithms (md5, sha512, sha256). No longer maintained; Swig itself is deprecated in favor of Nunjucks. Works only with Node >=0.10 and Swig. Key differentiator: seamless integration with Express app.engine.
npm install swig-minifierNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic setup of swig-minifier with Express, including init and engine replacement.
Migrate to a maintained HTML minification approach (e.g., html-minifier + custom caching).
Avoid using Redis cacheType or manually implement targeted cache clearing.
Run: npm install swig
No dependency data recorded yet.